org.nuxeo.ecm.webengine.base
Class Main
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.ecm.webengine.model.impl.ModuleRoot
org.nuxeo.ecm.webengine.base.Main
- All Implemented Interfaces:
- ModuleResource, Resource, Adaptable
public class Main
- extends ModuleRoot
The web entry point of WebEngine.
This is a mix between an webengine module and a JAX-RS root resource
- Author:
- Bogdan Stefanescu
Constructor Summary |
Main(javax.ws.rs.core.UriInfo info,
javax.ws.rs.core.HttpHeaders headers)
|
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource |
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString |
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource |
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot |
mgr
protected final ModuleManager mgr
module
protected Module module
Main
public Main(@Context
javax.ws.rs.core.UriInfo info,
@Context
javax.ws.rs.core.HttpHeaders headers)
init
protected void init()
- Initializes the current module context.
doGet
public Object doGet()
getHelp
public Object getHelp()
getAbout
public Object getAbout()
dispatch
public Object dispatch(String path)
handleError
public Object handleError(javax.ws.rs.WebApplicationException e)
- Specified by:
handleError
in interface ModuleResource
- Overrides:
handleError
in class ModuleRoot
Copyright © 2010 Nuxeo SAS. All Rights Reserved.