public class Context extends Object
Constructor and Description |
---|
Context(Request request,
Response response,
IocAdapter iocAdapter,
Env env,
Site site) |
Modifier and Type | Method and Description |
---|---|
Cookies |
cookies() |
User |
currentUser() |
Env |
env() |
<T> T |
extract(Class<T> type) |
Object |
extract(Type type) |
String |
get(String key) |
<T> T |
getBean(Class<T> type) |
String |
header(String name) |
List<String> |
headers(String name) |
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, Env env, Site site)
public Request request()
public Response response()
public Env env()
public Site site()
public String uri()
public Cookies cookies()
public Query query()
public String method()
public <T> T getBean(Class<T> type)
public void setCurrentUser(User user)
public User currentUser()
public <T> T extract(Class<T> type) throws IOException
IOException
public Object extract(Type type) throws IOException
IOException
Copyright © 2015. All Rights Reserved.