|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.resteasy.hypermedia.renderer.ResourceContext
public final class ResourceContext
Provides the context information for representation renderers.
Nested Class Summary | |
---|---|
static class |
ResourceContext.Builder Builds instances of ResourceContext . |
Method Summary | |
---|---|
Annotation[] |
getAnnotations() Returns the array of the annotations attached to the message entity instance. |
Resources |
getDiscovery() Returns the repository of resource link exits. |
Type |
getGenericType() Returns the type of instance to be written. |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHttpHeaders() Returns the mutable map of the HTTP message headers. |
LocalizationProvider |
getL7nProvider() Returns the helper to access localized information. |
javax.ws.rs.core.MediaType |
getMediaType() Returns the media type of the HTTP entity. |
javax.servlet.http.HttpServletRequest |
getRequest() Returns the access to the HTTP request. |
javax.servlet.http.HttpServletResponse |
getResponse() Returns the access to the HTTP response. |
Class<?> |
getType() Returns the class of instance that is to be written. |
javax.ws.rs.core.UriInfo |
getUriInfo() Returns the helper to construct URIs. |
boolean |
isUserInRole(String role) Checks if the current user has the given role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public javax.ws.rs.core.UriInfo getUriInfo()
public LocalizationProvider getL7nProvider()
public Resources getDiscovery()
public Class<?> getType()
public Type getGenericType()
GenericEntity
provides a way to specify this information at runtime.
public Annotation[] getAnnotations()
public javax.ws.rs.core.MediaType getMediaType()
public javax.ws.rs.core.MultivaluedMap<String,Object> getHttpHeaders()
public boolean isUserInRole(String role)
role
- the role to check.
true
if the current user is in the given role,
false
if not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |