|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.resthub.web.springmvc.router.HTTPRequestAdapter
public class HTTPRequestAdapter
Adapter class for HTTP class defined in Play! Framework Maps HTTPServletRequest to HTTP.Request and HTTP.Header
Router| Nested Class Summary | |
|---|---|
class |
HTTPRequestAdapter.Header
|
| 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 |
String |
contentType
Request content-type |
String |
controller
Controller to invoke |
Class |
controllerClass
The invoked controller class |
static ThreadLocal<HTTPRequestAdapter> |
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,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 |
url
Full url |
| Constructor Summary | |
|---|---|
HTTPRequestAdapter(javax.servlet.http.HttpServletRequest _request)
|
|
| Method Summary | |
|---|---|
String |
getBase()
Get the request base (ex: http://localhost:9000 |
String |
getContentType()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 Map<String,HTTPRequestAdapter.Header> headers
public Map<String,String> routeArgs
public String format
public String action
public transient Method invokedMethod
public transient Class controllerClass
public Map<String,Object> args
public Date date
public Boolean secure
public static ThreadLocal<HTTPRequestAdapter> current
| Constructor Detail |
|---|
public HTTPRequestAdapter(javax.servlet.http.HttpServletRequest _request)
| Method Detail |
|---|
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)
throws Exception
Exceptionpublic void resolveFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||