Class ResourceContext
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.views.ResourceContext
-
public class ResourceContext extends Object
A resource request context. This class is not thread safe.- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationHostappThe JAX-RS application providing the resources.protected javax.servlet.http.HttpServletRequestrequestprotected javax.ws.rs.core.UriInfouriInfo
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceContext()ResourceContext(ApplicationHost app)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddestroyContext()URLfindEntry(String path)ApplicationHostgetApplication()URIgetBaseUri()org.osgi.framework.BundlegetBundle()LinkedList<org.osgi.framework.Bundle>getBundleStack()static ResourceContextgetContext()PrincipalgetPrincipal()RenderingEnginegetRenderingEngine()javax.servlet.http.HttpServletRequestgetRequest()protected org.osgi.framework.BundlegetResourceBundle(Object res)CoreSessiongetSession()javax.ws.rs.core.UriInfogetUriInfo()StringgetViewRoot()The 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 Detail
-
app
protected ApplicationHost app
The JAX-RS application providing the resources.
-
request
protected javax.servlet.http.HttpServletRequest request
-
uriInfo
protected javax.ws.rs.core.UriInfo uriInfo
-
-
Constructor Detail
-
ResourceContext
protected ResourceContext()
-
ResourceContext
public ResourceContext(ApplicationHost app)
-
-
Method Detail
-
setContext
public static void setContext(ResourceContext context)
-
getContext
public static ResourceContext getContext()
-
destroyContext
public static void destroyContext()
-
getApplication
public ApplicationHost getApplication()
-
getBundleStack
public final LinkedList<org.osgi.framework.Bundle> 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
public final RenderingEngine getRenderingEngine()
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
-
getPrincipal
public Principal getPrincipal()
-
getUriInfo
public javax.ws.rs.core.UriInfo getUriInfo()
-
getSession
public CoreSession getSession()
-
getBaseUri
public URI getBaseUri()
-
pushBundleFor
public void pushBundleFor(Object obj)
-
pushBundle
public void pushBundle(org.osgi.framework.Bundle bundle)
-
getResourceBundle
protected org.osgi.framework.Bundle getResourceBundle(Object res)
-
getViewRoot
public String getViewRoot()
The prefix used to reference templates in template source locators
-
-