org.nuxeo.ecm.webengine.jaxrs.views
Class BundleResource
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.views.BundleResource
- Direct Known Subclasses:
- RootResource
public class BundleResource
- extends Object
- Author:
- Bogdan Stefanescu
VIEW_ROOT
public static final String VIEW_ROOT
- See Also:
- Constant Field Values
BundleResource
public BundleResource()
BundleResource
public BundleResource(ResourceContext context)
setContext
public BundleResource setContext(ResourceContext context)
getContext
public ResourceContext getContext()
getBundle
public final org.osgi.framework.Bundle getBundle()
getRenderingEngine
public final RenderingEngine getRenderingEngine()
getView
public final View getView(String path)
getRequest
public final HttpServletRequest getRequest()
getSession
public CoreSession getSession()
getPrincipal
public Principal getPrincipal()
getUriInfo
public UriInfo getUriInfo()
getBaseUri
public URI getBaseUri()
getResource
public <T extends BundleResource> T getResource(Class<T> clazz)
dispatch
public Object dispatch(String segment)
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
- Parameters:
target
-
- Returns:
Copyright © 2011 Nuxeo SAS. All Rights Reserved.