|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.mvc.Http.Request
public static class Http.Request
An HTTP Request
| Field Summary | |
|---|---|
String |
action
Full action (ex: Application.index) |
String |
actionMethod
Action method name |
Map<String,Object> |
args
Free space to store your request specific data |
InputStream |
body
Body stream |
String |
contentType
Request content-type |
String |
controller
Controller to invoke |
Map<String,Http.Cookie> |
cookies
HTTP Cookies |
static ThreadLocal<Http.Request> |
current
Bind to thread |
Date |
date
When the request has been received |
String |
domain
Server domain |
String |
format
Format (html,xml,json,text) |
Map<String,Http.Header> |
headers
HTTP Headers |
String |
host
Server host |
Method |
invokedMethod
The really invoker Java methid |
boolean |
isLoopback
Request comes from loopback interface |
boolean |
isNew
New request or already submitted |
String |
method
HTTP method |
String |
password
HTTP Basic Password |
String |
path
Request path |
Integer |
port
HTTP port |
String |
querystring
QueryString |
String |
remoteAddress
Client address |
Map<String,String> |
routeArgs
Additinal HTTP params extracted from route |
Boolean |
secure
is HTTPS ? |
String |
url
Full url |
String |
user
HTTP Basic User |
| Constructor Summary | |
|---|---|
Http.Request()
|
|
| Method Summary | |
|---|---|
void |
_init()
|
List<String> |
acceptLanguage()
Return the languages requested by the browser, ordered by preference (preferred first). |
static Http.Request |
current()
Retrieve the current request |
String |
getBase()
Get the request base (ex: http://localhost:9000 |
boolean |
isAjax()
This request was sent by an Ajax framework. |
boolean |
isModified(String etag,
long last)
|
void |
resolveFormat()
Automatically resolve request format from the Accept header (in this order : html > xml > json > text) |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String host
public String path
public String querystring
public String url
public String method
public String domain
public String remoteAddress
public String contentType
public String controller
public String actionMethod
public Integer port
public Boolean secure
public Map<String,Http.Header> headers
public Map<String,Http.Cookie> cookies
public transient InputStream body
public Map<String,String> routeArgs
public String format
public String action
public static ThreadLocal<Http.Request> current
public transient Method invokedMethod
public Map<String,Object> args
public Date date
public boolean isNew
public String user
public String password
public boolean isLoopback
| Constructor Detail |
|---|
public Http.Request()
| Method Detail |
|---|
public void _init()
public void resolveFormat()
public static Http.Request current()
public boolean isAjax()
public String getBase()
public String toString()
toString in class Objectpublic List<String> acceptLanguage()
public boolean isModified(String etag,
long last)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||