Class BundleResource
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.views.BundleResource
-
- Direct Known Subclasses:
RootResource
public class BundleResource extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceContext
context
static String
VIEW_ROOT
-
Constructor Summary
Constructors Constructor Description BundleResource()
BundleResource(ResourceContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(BundleResource target)
This method is only for contributed sub-resources.Object
dispatch(String segment)
URI
getBaseUri()
org.osgi.framework.Bundle
getBundle()
ResourceContext
getContext()
Principal
getPrincipal()
RenderingEngine
getRenderingEngine()
javax.servlet.http.HttpServletRequest
getRequest()
<T extends BundleResource>
TgetResource(Class<T> clazz)
CoreSession
getSession()
javax.ws.rs.core.UriInfo
getUriInfo()
View
getView(String path)
BundleResource
setContext(ResourceContext context)
-
-
-
Field Detail
-
VIEW_ROOT
public static final String VIEW_ROOT
- See Also:
- Constant Field Values
-
context
protected ResourceContext context
-
-
Constructor Detail
-
BundleResource
public BundleResource()
-
BundleResource
public BundleResource(ResourceContext context)
-
-
Method Detail
-
setContext
public BundleResource setContext(ResourceContext context)
-
getContext
public ResourceContext getContext()
-
getBundle
public final org.osgi.framework.Bundle getBundle()
-
getRenderingEngine
public final RenderingEngine getRenderingEngine()
-
getRequest
public final javax.servlet.http.HttpServletRequest getRequest()
-
getSession
public CoreSession getSession()
-
getPrincipal
public Principal getPrincipal()
-
getUriInfo
public javax.ws.rs.core.UriInfo getUriInfo()
-
getBaseUri
public URI getBaseUri()
-
getResource
public <T extends BundleResource> T getResource(Class<T> clazz)
-
accept
public boolean accept(BundleResource target)
This method is only for contributed sub-resources. It will be ignored for root resources. Extension resources may override this method to dynamically accept or reject to be installed as a sub-resource of the target resource
-
-