Class Request
java.lang.Object
com.yahoo.application.container.handler.Request
A request for use with
JDisc.handleRequest(Request)
.- Author:
- Einar M R Rosenvinge
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates a Request with an empty body.Creates a GET Request with a message body.Request
(String uri, byte[] body, Request.Method method) Creates a Request with a message body.Request
(String uri, byte[] body, Request.Method method, Principal principal) Creates a Request with a message body, method and user principal.Creates a GET Request with a message body.Request
(String uri, String body, Request.Method method) Creates a Request with a message body. -
Method Summary
-
Constructor Details
-
Request
Creates a Request with an empty body.- Parameters:
uri
- the URI of the request
-
Request
Creates a GET Request with a message body.- Parameters:
uri
- the URI of the requestbody
- the body of the request
-
Request
Creates a GET Request with a message body.- Parameters:
uri
- the URI of the requestbody
- the body of the request as a UTF-8 string
-
Request
Creates a Request with a message body.- Parameters:
uri
- the URI of the requestbody
- the body of the request
-
Request
Creates a Request with a message body, method and user principal.- Parameters:
uri
- the URI of the requestbody
- the body of the requestmethod
- the method of the requestprincipal
- the user principal of the request
-
Request
Creates a Request with a message body.- Parameters:
uri
- the URI of the requestbody
- the body of the request as a UTF-8 string
-
-
Method Details
-
getHeaders
Returns a mutable multi-map of headers for this Request.- Returns:
- a mutable multi-map of headers for this Request
-
getBody
public byte[] getBody()Returns the body of this Request.- Returns:
- the body of this Request
-
getUri
Returns the URI of this Request.- Returns:
- the URI of this Request
-
getAttributes
- Returns:
- a mutable attribute map for this request.
-
toString
-
getMethod
-
getUserPrincipal
-