Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.jaxrs.views
Class ResourceContext

java.lang.Object
  extended by 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

Constructor Summary
ResourceContext(ApplicationHost app)
           
 
Method Summary
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()
           
 HttpServletRequest getRequest()
           
 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(HttpServletRequest request)
           
 void setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceContext

public ResourceContext(ApplicationHost app)
Method Detail

setContext

public static final void setContext(ResourceContext context)

getContext

public static final ResourceContext getContext()

destroyContext

public static final 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(HttpServletRequest request)

getBundle

public final org.osgi.framework.Bundle getBundle()

getRenderingEngine

public final RenderingEngine getRenderingEngine()

getRequest

public 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)

getViewRoot

public String getViewRoot()
The prefix used to reference templates in template source locators

Returns:

findEntry

public URL findEntry(String path)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.