public interface HttpRequest
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String key) |
String |
getMethod() |
OutputStream |
getOutputStream() |
String |
getPathInfo() |
String |
getQueryString() |
String |
getRequestURI() |
void |
sendError(int errorStatus) |
void |
sendRedirect(String url) |
void |
setAttribute(String key,
Object attribute) |
void |
setContentType(String contentType) |
void |
setHeader(String header,
String value) |
void |
setStatus(int i) |
static final int STATUS_NOT_FOUND
String getMethod()
String getPathInfo()
String getRequestURI()
String getQueryString()
void setContentType(String contentType)
OutputStream getOutputStream() throws IOException
IOExceptionvoid sendError(int errorStatus)
throws IOException
IOExceptionvoid sendRedirect(String url) throws IOException
IOExceptionvoid setStatus(int i)
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.