SC_ACCEPTED
public static final int SC_ACCEPTED
- 202
SC_BAD_GATEWAY
public static final int SC_BAD_GATEWAY
- 502
SC_BAD_REQUEST
public static final int SC_BAD_REQUEST
- 400
SC_CONFLICT
public static final int SC_CONFLICT
- 409
SC_CONTINUE
public static final int SC_CONTINUE
- 100
SC_CREATED
public static final int SC_CREATED
- 201
SC_FORBIDDEN
public static final int SC_FORBIDDEN
- 403
SC_GATEWAY_TIMEOUT
public static final int SC_GATEWAY_TIMEOUT
- 504
SC_GONE
public static final int SC_GONE
- 410
SC_HTTP_VERSION_NOT_SUPPORTED
public static final int SC_HTTP_VERSION_NOT_SUPPORTED
- 505
SC_INTERNAL_SERVER_ERROR
public static final int SC_INTERNAL_SERVER_ERROR
- 500
SC_LENGTH_REQUIRED
public static final int SC_LENGTH_REQUIRED
- 411
SC_METHOD_NOT_ALLOWED
public static final int SC_METHOD_NOT_ALLOWED
- 405
SC_MOVED_PERMANENTLY
public static final int SC_MOVED_PERMANENTLY
- 301
SC_MOVED_TEMPORARILY
public static final int SC_MOVED_TEMPORARILY
- 302
SC_MULTIPLE_CHOICES
public static final int SC_MULTIPLE_CHOICES
- 300
SC_NON_AUTHORITATIVE_INFORMATION
public static final int SC_NON_AUTHORITATIVE_INFORMATION
- 203
SC_NOT_ACCEPTABLE
public static final int SC_NOT_ACCEPTABLE
- 406
SC_NOT_FOUND
public static final int SC_NOT_FOUND
- 404
SC_NOT_IMPLEMENTED
public static final int SC_NOT_IMPLEMENTED
- 501
SC_NOT_MODIFIED
public static final int SC_NOT_MODIFIED
- 304
SC_NO_CONTENT
public static final int SC_NO_CONTENT
- 204
SC_OK
public static final int SC_OK
- 200
SC_PARTIAL_CONTENT
public static final int SC_PARTIAL_CONTENT
- 206
SC_PAYMENT_REQUIRED
public static final int SC_PAYMENT_REQUIRED
- 402
SC_PRECONDITION_FAILED
public static final int SC_PRECONDITION_FAILED
- 412
SC_PROXY_AUTHENTICATION_REQUIRED
public static final int SC_PROXY_AUTHENTICATION_REQUIRED
- 407
SC_REQUEST_ENTITY_TOO_LARGE
public static final int SC_REQUEST_ENTITY_TOO_LARGE
- 413
SC_REQUEST_TIMEOUT
public static final int SC_REQUEST_TIMEOUT
- 408
SC_REQUEST_URI_TOO_LONG
public static final int SC_REQUEST_URI_TOO_LONG
- 414
SC_RESET_CONTENT
public static final int SC_RESET_CONTENT
- 205
SC_SEE_OTHER
public static final int SC_SEE_OTHER
- 303
SC_SERVICE_UNAVAILABLE
public static final int SC_SERVICE_UNAVAILABLE
- 503
SC_SWITCHING_PROTOCOLS
public static final int SC_SWITCHING_PROTOCOLS
- 101
SC_UNAUTHORIZED
public static final int SC_UNAUTHORIZED
- 401
SC_UNSUPPORTED_MEDIA_TYPE
public static final int SC_UNSUPPORTED_MEDIA_TYPE
- 415
SC_USE_PROXY
public static final int SC_USE_PROXY
- 305
answerRequest
public void answerRequest(byte[] answer)
containsHeader
public boolean containsHeader(String name)
encodeRedirectUrl
public String encodeRedirectUrl(String url)
encodeUrl
public String encodeUrl(String url)
getAttribute
public Object getAttribute(String name)
getAuthType
public String getAuthType()
getCharacterEncoding
public String getCharacterEncoding()
getContentLength
public int getContentLength()
getContentType
public String getContentType()
getDateHeader
public long getDateHeader(String name,
long def)
getHeader
public String getHeader(String name)
getHeaderNames
public Enumeration getHeaderNames()
getIntHeader
public int getIntHeader(String name,
int def)
getLongHeader
public long getLongHeader(String name,
long def)
getMethod
public String getMethod()
getParameter
public String getParameter(String name)
getParameterNames
public Enumeration getParameterNames()
getParameterValues
public String[] getParameterValues(String name)
getPathInfo
public String getPathInfo()
getPathTranslated
public String getPathTranslated()
getProtocol
public String getProtocol()
getQueryString
public String getQueryString()
getReader
public BufferedReader getReader()
getRealPath
public String getRealPath(String path)
getRemoteAddr
public String getRemoteAddr()
getRemoteHost
public String getRemoteHost()
getRemoteUser
public String getRemoteUser()
getRequestURI
public String getRequestURI()
getRequestedSessionId
public String getRequestedSessionId()
getScheme
public String getScheme()
getServerName
public String getServerName()
getServerPort
public int getServerPort()
getServletPath
public String getServletPath()
getWriter
public PrintWriter getWriter()
throws IOException
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
sendError
public void sendError(int resCode)
throws IOException
sendError
public void sendError(int resCode,
String resMessage)
throws IOException
sendRedirect
public void sendRedirect(String location)
throws IOException
setContentLength
public void setContentLength(int length)
setContentType
public void setContentType(String type)
setDateHeader
public void setDateHeader(String name,
long value)
setHeader
public void setHeader(String name,
String value)
setIntHeader
public void setIntHeader(String name,
int value)
setLongHeader
public void setLongHeader(String name,
long value)
setStatus
public void setStatus(int resCode)
setStatus
public void setStatus(int resCode,
String resMessage)
splitStr
public static String[] splitStr(String str)