play.mvc
Class Http.Request

java.lang.Object
  extended by play.mvc.Http.RequestHeader
      extended by play.mvc.Http.Request
Enclosing class:
Http

public abstract static class Http.Request
extends Http.RequestHeader

An HTTP request.


Constructor Summary
Http.Request()
           
 
Method Summary
abstract  Http.RequestBody body()
          The request body.
 void setUsername(java.lang.String username)
          Defines the user name for this request.
 java.lang.String username()
          The user name for this request, if defined.
 
Methods inherited from class play.mvc.Http.RequestHeader
accept, acceptedTypes, acceptLanguages, accepts, cookie, cookies, getHeader, getQueryString, headers, host, method, path, queryString, remoteAddress, uri, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http.Request

public Http.Request()
Method Detail

body

public abstract Http.RequestBody body()
The request body.


username

public java.lang.String username()
The user name for this request, if defined. This is usually set by annotating your Action with @Authenticated.


setUsername

public void setUsername(java.lang.String username)
Defines the user name for this request.