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
Modifier and TypeFieldDescriptionprotected ApplicationHost
The JAX-RS application providing the resources.protected javax.servlet.http.HttpServletRequest
protected javax.ws.rs.core.UriInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
final org.osgi.framework.Bundle
final LinkedList<org.osgi.framework.Bundle>
static ResourceContext
final RenderingEngine
javax.servlet.http.HttpServletRequest
protected org.osgi.framework.Bundle
getResourceBundle
(Object res) javax.ws.rs.core.UriInfo
The prefix used to reference templates in template source locatorsvoid
pushBundle
(org.osgi.framework.Bundle bundle) void
pushBundleFor
(Object obj) static void
setContext
(ResourceContext context) void
setRequest
(javax.servlet.http.HttpServletRequest request) void
setUriInfo
(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
-