| Modifier and Type | Class and Description |
|---|---|
class |
HTTPRequestAdapter.Header |
| Modifier and Type | Field and Description |
|---|---|
String |
action
Full action (ex: Application.index)
|
String |
actionMethod
Action method name
|
Map<String,Object> |
args
Free space to store your request specific data
|
String |
contentType
Request content-type
|
String |
contextPath
Context path
|
String |
controller
Controller to invoke
|
Class |
controllerClass
The invoked controller class
|
Date |
date
When the request has been received
|
String |
domain
Server domain
|
String |
format
Format (html,xml,json,text)
|
Map<String,HTTPRequestAdapter.Header> |
headers
HTTP Headers
|
String |
host
Server host
|
Method |
invokedMethod
The really invoker Java methid
|
String |
method
HTTP method
|
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 |
servletPath
Servlet path
|
String |
url
Full url
|
| Constructor and Description |
|---|
HTTPRequestAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBase()
Get the request base (ex: http://localhost:9000
|
String |
getContentType() |
static HTTPRequestAdapter |
getCurrent() |
String |
getQueryString() |
boolean |
isSecure() |
static HTTPRequestAdapter |
parseRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
resolveFormat()
Automatically resolve request format from the Accept header (in this
order : html > xml > json > text)
|
void |
setContentType(String contentType) |
void |
setFormat(String _format) |
void |
setQueryString(String queryString) |
void |
setSecure(boolean secure) |
public String host
public String path
public String contextPath
public String servletPath
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 Map<String,HTTPRequestAdapter.Header> headers
public String format
public String action
public transient Method invokedMethod
public transient Class controllerClass
public Date date
public Boolean secure
public void setFormat(String _format)
public boolean isSecure()
public void setSecure(boolean secure)
public String getContentType()
public void setContentType(String contentType)
public String getQueryString()
public void setQueryString(String queryString)
public String getBase()
public static HTTPRequestAdapter parseRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
public static HTTPRequestAdapter getCurrent()
public void resolveFormat()
Copyright © 2010-2014. All Rights Reserved.