|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.mvc.Http.Request
public abstract static class Http.Request
An HTTP request.
Constructor Summary | |
---|---|
Http.Request()
|
Method Summary | |
---|---|
abstract java.util.List<Lang> |
acceptLanguages()
The Request Langs, extracted from the Accept-Language header. |
abstract Http.RequestBody |
body()
The request body. |
abstract Http.Cookies |
cookies()
|
java.lang.String |
getHeader(java.lang.String headerName)
Retrieves a single header. |
abstract java.util.Map<java.lang.String,java.lang.String[]> |
headers()
Retrieves all headers. |
abstract java.lang.String |
host()
The request host. |
abstract java.lang.String |
method()
The HTTP Method. |
abstract java.lang.String |
path()
The URI path. |
abstract java.util.Map<java.lang.String,java.lang.String[]> |
queryString()
The query string content. |
void |
setUsername(java.lang.String username)
Defines the user name for this request. |
abstract java.lang.String |
uri()
The complete request URI, containing both path and query string. |
java.lang.String |
username()
The user name for this request, if defined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Http.Request()
Method Detail |
---|
public abstract java.lang.String uri()
public abstract java.lang.String method()
public abstract java.lang.String host()
public abstract java.lang.String path()
public abstract java.util.List<Lang> acceptLanguages()
public abstract java.util.Map<java.lang.String,java.lang.String[]> queryString()
public abstract Http.RequestBody body()
public abstract Http.Cookies cookies()
public abstract java.util.Map<java.lang.String,java.lang.String[]> headers()
public java.lang.String getHeader(java.lang.String headerName)
public java.lang.String username()
@Authenticated
.
public void setUsername(java.lang.String username)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |