Class ResourceContext
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.views.ResourceContext
A resource request context. This class is not thread safe.
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationHostThe JAX-RS application providing the resources.protected javax.servlet.http.HttpServletRequestprotected javax.ws.rs.core.UriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfinal org.osgi.framework.Bundlefinal LinkedList<org.osgi.framework.Bundle>static ResourceContextfinal RenderingEnginejavax.servlet.http.HttpServletRequestprotected org.osgi.framework.BundlegetResourceBundle(Object res) javax.ws.rs.core.UriInfoThe prefix used to reference templates in template source locatorsvoidpushBundle(org.osgi.framework.Bundle bundle) voidpushBundleFor(Object obj) static voidsetContext(ResourceContext context) voidsetRequest(javax.servlet.http.HttpServletRequest request) voidsetUriInfo(javax.ws.rs.core.UriInfo uriInfo)
-
Field Details
-
app
The JAX-RS application providing the resources. -
request
protected javax.servlet.http.HttpServletRequest request -
uriInfo
protected javax.ws.rs.core.UriInfo uriInfo
-
-
Constructor Details
-
ResourceContext
protected ResourceContext() -
ResourceContext
-
-
Method Details
-
setContext
-
getContext
-
destroyContext
public static void destroyContext() -
getApplication
-
getBundleStack
-
setUriInfo
public void setUriInfo(javax.ws.rs.core.UriInfo uriInfo) -
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request) -
getBundle
public final org.osgi.framework.Bundle getBundle() -
getRenderingEngine
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getPrincipal
-
getUriInfo
public javax.ws.rs.core.UriInfo getUriInfo() -
getSession
-
getBaseUri
-
pushBundleFor
-
pushBundle
public void pushBundle(org.osgi.framework.Bundle bundle) -
getResourceBundle
-
getViewRoot
The prefix used to reference templates in template source locators -
findEntry
-