|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Request
HTTP Request representation.
Nested Class Summary | |
---|---|
static class |
Request.Method
HTTP method representation. |
Method Summary | ||
---|---|---|
String |
getClientHost()
Return the client host connected to the server. |
|
long |
getContentLength()
Returns the request body content length. |
|
List<Cookie> |
getCookies()
Returns the list of cookies. |
|
MultiValued<String,String> |
getHeaders()
Returns the HTTP headers. |
|
Request.Method |
getMethod()
Returns the HTTP method. |
|
MultiValued<String,String> |
getParameters()
Returns the parameters, populated only if HTTP method is Request.Method.POST
and Content-Type is set to application/x-www-form-urlencoded . |
|
String |
getPath()
Returns the request path. |
|
String |
getProtocolName()
Returns the protocol name. |
|
String |
getProtocolVersion()
Returns the protocol version. |
|
MultiValued<String,String> |
getQueryStringParameters()
Returns the Query String parameters, populated only if HTTP method is Request.Method.GET . |
|
String |
getServerHost()
Return the server host. |
|
int |
getServerPort()
Return the server port. |
|
Session |
getSession()
Returns the current HTTP Session. |
|
|
readRequestBody(RequestBodyReader<T> requestBodyReader)
Reads and converts the request body input stream. |
Method Detail |
---|
String getClientHost()
String getServerHost()
int getServerPort()
String getPath()
Request.Method getMethod()
String getProtocolName()
String getProtocolVersion()
MultiValued<String,String> getHeaders()
List<Cookie> getCookies()
MultiValued<String,String> getQueryStringParameters()
Request.Method.GET
.
MultiValued<String,String> getParameters()
Request.Method.POST
and Content-Type
is set to application/x-www-form-urlencoded
.
Session getSession()
long getContentLength()
-1
if it is unknown.<T> T readRequestBody(RequestBodyReader<T> requestBodyReader) throws IOException
the
- user defined
IOException
- if any error occurs while opening the request body stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |