public static class Http.RequestImpl extends play.core.j.RequestHeaderImpl implements Http.Request
| Constructor and Description |
|---|
RequestImpl(play.api.mvc.Request<Http.RequestBody> request)
Constructor with a requestbody.
|
RequestImpl(play.api.mvc.RequestHeader header)
Constructor only based on a header.
|
| Modifier and Type | Method and Description |
|---|---|
play.api.mvc.Request<Http.RequestBody> |
_underlyingRequest()
For internal Play-use only
|
Http.RequestBody |
body()
The request body.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
java.lang.String |
username()
The user name for this request, if defined.
|
Http.Request |
withUsername(java.lang.String username)
This method returns a new request, based on the current underlying with a giving username.
|
_underlyingHeader, acceptedTypes, acceptLanguages, accepts, charset, clientCertificateChain, contentType, cookie, cookies, getHeader, getQueryString, hasHeader, headers, host, method, path, queryString, remoteAddress, secure, tags, toString, uri, version, withTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_underlyingHeader, acceptedTypes, acceptLanguages, accepts, charset, clientCertificateChain, contentType, cookie, cookies, getHeader, getQueryString, hasHeader, headers, host, method, path, queryString, remoteAddress, secure, tags, uri, versionpublic RequestImpl(play.api.mvc.RequestHeader header)
header - the header from a requestpublic RequestImpl(play.api.mvc.Request<Http.RequestBody> request)
request - the body of the requestpublic Http.RequestBody body()
Http.Requestbody in interface Http.Requestpublic java.lang.String username()
Http.Request@Authenticated.username in interface Http.Requestpublic void setUsername(java.lang.String username)
setUsername in interface Http.Requestusername - the username of the requesterpublic Http.Request withUsername(java.lang.String username)
withUsername in interface Http.Requestusername - the new user namepublic play.api.mvc.Request<Http.RequestBody> _underlyingRequest()
Http.Request_underlyingRequest in interface Http.Request