public class Context extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Context.CORSRequestType |
| Constructor and Description |
|---|
Context(Request request,
Response response,
IocAdapter iocAdapter,
Site site) |
| Modifier and Type | Method and Description |
|---|---|
String |
clientAddress() |
byte[] |
content() |
<T> T |
contentAs(Class<T> type) |
String |
contentAsString() |
Cookies |
cookies() |
Context.CORSRequestType |
corsRequestType() |
User |
currentUser() |
Object |
extract(Type type) |
String |
get(String key) |
<T> T |
getBean(Class<T> type) |
String |
header(String name) |
List<String> |
headers(String name) |
boolean |
isCORS() |
boolean |
isPreflight() |
boolean |
isUrlEncodedForm() |
String |
method() |
List<Part> |
parts() |
Query |
query() |
Request |
request() |
Response |
response() |
void |
setCurrentUser(User user) |
Site |
site() |
String |
uri() |
public Context(Request request, Response response, IocAdapter iocAdapter, Site site)
public Request request()
public Response response()
public Site site()
public Context.CORSRequestType corsRequestType()
public boolean isCORS()
public boolean isPreflight()
public String uri()
public Cookies cookies()
public Query query()
public String method()
public String clientAddress()
public byte[] content()
public String contentAsString()
public <T> T contentAs(Class<T> type)
public <T> T getBean(Class<T> type)
public void setCurrentUser(User user)
public User currentUser()
public boolean isUrlEncodedForm()
Copyright © 2014. All Rights Reserved.