Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.webengine.jaxrs.views.BundleResource
Direct Known Subclasses:
RootResource

public class BundleResource
extends Object

Author:
Bogdan Stefanescu

Field Summary
static String VIEW_ROOT
           
 
Constructor Summary
BundleResource()
           
BundleResource(ResourceContext context)
           
 
Method Summary
 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()
           
 HttpServletRequest getRequest()
           
<T extends BundleResource>
T
getResource(Class<T> clazz)
           
 CoreSession getSession()
           
 UriInfo getUriInfo()
           
 View getView(String path)
           
 BundleResource setContext(ResourceContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_ROOT

public static final String VIEW_ROOT
See Also:
Constant Field Values
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()

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:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.