Nuxeo Enterprise Platform 5.3

org.nuxeo.ecm.webengine.base
Class Main

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by org.nuxeo.ecm.webengine.model.impl.ModuleRoot
              extended by 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

Field Summary
protected  ModuleManager mgr
           
protected  Module module
           
 
Fields inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
ctx, next, path, prev, type
 
Constructor Summary
Main(javax.ws.rs.core.UriInfo info, javax.ws.rs.core.HttpHeaders headers)
           
 
Method Summary
 Object dispatch(String path)
           
 Object doGet()
           
 Object getAbout()
           
 Object getHelp()
           
 Object handleError(javax.ws.rs.WebApplicationException e)
           
protected  void init()
          Initializes the current module context.
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.ModuleRoot
getLink, getSkinResource
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Field Detail

mgr

protected final ModuleManager mgr

module

protected Module module
Constructor Detail

Main

public Main(@Context
            javax.ws.rs.core.UriInfo info,
            @Context
            javax.ws.rs.core.HttpHeaders headers)
Method Detail

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

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.