| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
baseUrl |
protected FileUpload[] |
fileUploads |
protected MultiMap<java.lang.Object> |
form |
protected java.lang.String |
method |
protected MultiMap<java.lang.String> |
params |
protected java.lang.String |
path |
protected java.lang.String |
query |
protected Response |
response |
protected java.lang.String |
url |
BODY_ENCODING, cookies, headers| Constructor and Description |
|---|
RequestImpl(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
Auth |
auth()
Returns the auth.
|
java.lang.String |
baseUrl()
Returns the base URL corresponding to the the HTTP request.
|
FileUpload[] |
fileUploads()
Returns array of uploaded files.
|
java.lang.Object |
form(java.lang.String name)
Returns the form parameter.
|
Request |
form(java.lang.String name,
java.lang.Object value)
Sets the form parameter.
|
MultiMap<java.lang.Object> |
forms()
Returns form parameters.
|
java.lang.String |
method()
Returns HTTP method, in uppercase.
|
Request |
method(java.lang.String method)
Sets method.
|
void |
next()
Delegates this request to the next handler.
|
void |
next(OnResponseEndCallback onResponseEnd)
Delegates this request to the next handler and executes
the runnable on the response end.
|
java.lang.String |
param(java.lang.String name)
Gets the parameter value.
|
Request |
param(java.lang.String name,
java.lang.String value)
Sets parameter value.
|
MultiMap<java.lang.String> |
params()
Returns map of string request parameters.
|
java.lang.String |
path()
Returns action path of the URI.
|
java.lang.String |
query()
Returns the query string of the URL.
|
Response |
response()
Returns associated response of this request.
|
void |
response(Response response)
Associates response to this request.
|
Session |
session()
Returns current session.
|
java.lang.String |
url()
Returns the absolute URL corresponding to the the HTTP request.
|
MultiMap<java.lang.Object> |
values()
Merges all the inputs in best possible way.
|
<T> T |
values(java.lang.Class<T> type)
Returns merged values to a certain type.
|
body, body, body, body, body, bodyBytes, bodyList, bodyMap, bodyValue, bodyValue, contentType, contentType, context, cookie, cookie, cookies, end, getBodyAsString, header, header, headers, isContentType, setBody, setBody, setBodyObjectprotected java.lang.String baseUrl
protected FileUpload[] fileUploads
protected MultiMap<java.lang.Object> form
protected java.lang.String method
protected MultiMap<java.lang.String> params
protected java.lang.String path
protected java.lang.String query
protected Response response
protected java.lang.String url
public java.lang.String baseUrl()
Requestnull the request represents a 'local' call,
with only a Request.path() existing.public FileUpload[] fileUploads()
Requestnull if nothing
was uploaded.fileUploads in interface Requestpublic java.lang.Object form(java.lang.String name)
Requestpublic Request form(java.lang.String name, java.lang.Object value)
Requestpublic MultiMap<java.lang.Object> forms()
Requestpublic java.lang.String method()
Requestpublic Request method(java.lang.String method)
Requestpublic void next()
Requestpublic void next(OnResponseEndCallback onResponseEnd)
Requestpublic java.lang.String param(java.lang.String name)
public Request param(java.lang.String name, java.lang.String value)
Requestpublic MultiMap<java.lang.String> params()
RequestParameters are accumulated in given order.
public java.lang.String path()
Request"/" for the root.public java.lang.String query()
Requestpublic Response response()
Requestpublic void response(Response response)
Requestpublic Session session()
Requestpublic java.lang.String url()
Requestpublic MultiMap<java.lang.Object> values()
Requestparameters - parsed to a JSON, if possibleRequest.bodyValue() parsed body}null.
When content type is one of the form content types, body is ignored.public <T> T values(java.lang.Class<T> type)
Requestvalues in interface RequestRequest.values()