public static class NettyHttp.Request extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
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
|
Class<? extends play.mvc.Controller> |
controllerClass
The invoked controller class
|
Map<String,play.mvc.Http.Cookie> |
cookies
HTTP Cookies
|
static ThreadLocal<play.mvc.Http.Request> |
current
Bind to thread
|
Date |
date
When the request has been received
|
String |
domain
Server domain
|
String |
encoding
This is the encoding used to decode this request.
|
String |
format
Format (html,xml,json,text)
|
Map<String,play.mvc.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
|
play.mvc.Scope.Params |
params
Params
|
String |
password
HTTP Basic Password
|
String |
path
Request path
|
Integer |
port
HTTP port
|
String |
querystring
QueryString
|
String |
remoteAddress
Client address
|
Map<String,String> |
routeArgs
Additional HTTP params extracted from route
|
Boolean |
secure
is HTTPS ?
|
String |
url
Full url
|
String |
user
HTTP Basic User
|
| 构造器和说明 |
|---|
Request()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
_init()
已过时。
|
List<String> |
acceptLanguage()
Return the languages requested by the browser, ordered by preference (preferred first).
|
protected void |
authorizationInit() |
static play.mvc.Http.Request |
createRequest(String _remoteAddress,
String _method,
String _path,
String _querystring,
String _contentType,
InputStream _body,
String _url,
String _host,
boolean _isLoopback,
int _port,
String _domain,
boolean _secure,
Map<String,play.mvc.Http.Header> _headers,
Map<String,play.mvc.Http.Cookie> _cookies)
All creation / initing of new requests should use this method.
|
static play.mvc.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) |
protected void |
parseXForwarded() |
void |
resolveFormat()
Automatically resolve request format from the Accept header
(in this order : html > xml > json > text)
|
String |
toString() |
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 encoding
public String controller
public String actionMethod
public Integer port
public Boolean secure
public transient InputStream body
public String format
public String action
public static ThreadLocal<play.mvc.Http.Request> current
public transient Method invokedMethod
public transient Class<? extends play.mvc.Controller> controllerClass
public Date date
public boolean isNew
public String user
public String password
public boolean isLoopback
public final play.mvc.Scope.Params params
@Deprecated public Request()
public static play.mvc.Http.Request createRequest(String _remoteAddress, String _method, String _path, String _querystring, String _contentType, InputStream _body, String _url, String _host, boolean _isLoopback, int _port, String _domain, boolean _secure, Map<String,play.mvc.Http.Header> _headers, Map<String,play.mvc.Http.Cookie> _cookies)
protected void parseXForwarded()
@Deprecated public void _init()
protected void authorizationInit()
public void resolveFormat()
public static play.mvc.Http.Request current()
public boolean isAjax()
public String getBase()
public List<String> acceptLanguage()
public boolean isModified(String etag, long last)
Copyright © 2020. All rights reserved.