public interface RequestContext<R extends RequestContext<?>>
add-ons and default
utility methods.| Modifier and Type | Method and Description |
|---|---|
CacheHeadersRequestContextAddon<R> |
cacheHeaders()
Cache headers related methods.
|
Object |
exchange()
The underlying exchange object, as given by the
HTTP server.
|
<T> T |
get(Class<T> clazz)
Shortcut to get an instance from Guice.
|
<T> T |
get(com.google.inject.Key<T> key)
Shortcut to get an instance from Guice.
|
Locale |
getLocaleToUse()
The best Locale to use, as resolved by
the
LocaleResolver. |
com.google.inject.Injector |
guice()
Easy access to the Guice context.
|
JsonManager |
json()
Easy access to the
JsonManager,
Json related methods. |
RequestRequestContextAddon<R> |
request()
Request related methods.
|
ResponseRequestContextAddon<R> |
response()
Response related methods.
|
RoutingRequestContextAddon<R> |
routing()
Routing related methods.
|
TemplatingRequestContextAddon<R> |
templating()
Templating methods.
|
VariablesRequestContextAddon<R> |
variables()
Request scoped variables related methods.
|
XmlManager |
xml()
Easy access to the
XmlManager,
XML related methods. |
RequestRequestContextAddon<R> request()
ResponseRequestContextAddon<R> response()
RoutingRequestContextAddon<R> routing()
TemplatingRequestContextAddon<R> templating()
VariablesRequestContextAddon<R> variables()
CacheHeadersRequestContextAddon<R> cacheHeaders()
JsonManager json()
JsonManager,
Json related methods.XmlManager xml()
XmlManager,
XML related methods.com.google.inject.Injector guice()
<T> T get(Class<T> clazz)
<T> T get(com.google.inject.Key<T> key)
Locale getLocaleToUse()
LocaleResolver.Object exchange()
Copyright © 2017. All rights reserved.