public class ResourceContext extends Object
Modifier and Type | Field and Description |
---|---|
protected ApplicationHost |
app
The JAX-RS application providing the resources.
|
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Modifier | Constructor and Description |
---|---|
protected |
ResourceContext() |
|
ResourceContext(ApplicationHost app) |
Modifier and Type | Method and Description |
---|---|
static void |
destroyContext() |
URL |
findEntry(String path) |
ApplicationHost |
getApplication() |
URI |
getBaseUri() |
org.osgi.framework.Bundle |
getBundle() |
LinkedList<org.osgi.framework.Bundle> |
getBundleStack() |
static ResourceContext |
getContext() |
Principal |
getPrincipal() |
RenderingEngine |
getRenderingEngine() |
javax.servlet.http.HttpServletRequest |
getRequest() |
protected org.osgi.framework.Bundle |
getResourceBundle(Object res) |
CoreSession |
getSession() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
String |
getViewRoot()
The prefix used to reference templates in template source locators
|
void |
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) |
protected ApplicationHost app
protected javax.servlet.http.HttpServletRequest request
protected javax.ws.rs.core.UriInfo uriInfo
protected ResourceContext()
public ResourceContext(ApplicationHost app)
public static final void setContext(ResourceContext context)
public static final ResourceContext getContext()
public static final void destroyContext()
public ApplicationHost getApplication()
public final LinkedList<org.osgi.framework.Bundle> getBundleStack()
public void setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
public void setRequest(javax.servlet.http.HttpServletRequest request)
public final org.osgi.framework.Bundle getBundle()
public final RenderingEngine getRenderingEngine()
public javax.servlet.http.HttpServletRequest getRequest()
public Principal getPrincipal()
public javax.ws.rs.core.UriInfo getUriInfo()
public CoreSession getSession()
public URI getBaseUri()
public void pushBundleFor(Object obj)
public void pushBundle(org.osgi.framework.Bundle bundle)
protected org.osgi.framework.Bundle getResourceBundle(Object res)
public String getViewRoot()
Copyright © 2016 Nuxeo SA. All rights reserved.