org.nuxeo.ecm.webengine.samples
Class SamplesRoot
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.samples.SamplesRoot
- All Implemented Interfaces:
- ModuleResource, Resource, Adaptable
- Direct Known Subclasses:
- ExtendedSamplesRoot
public class SamplesRoot
- extends ModuleRoot
Web Engine Samples Root
This demonstrates how to define the entry point for a WebEngine module.
The module entry points are regular JAX-RS resources with an additional @WebObject
annotation. This annotation is mainly used to specify the resource name. A
Web Module is declared in the MANIFEST.MF using the directive
{code}NuxeoWebModule{/code}. You can also configure a Web Module using a
module.xml file located in the module root directory. This file can be used
to define: root resources (as we've seen in the previous example), links,
media type IDs random extensions to other extension points;
- Author:
- Bogdan Stefanescu, Stephane Lacoin (aka matic)
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, 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 |
SamplesRoot
public SamplesRoot()
doGet
public Object doGet()
doGetHello
public Object doGetHello()
doGetTemplating
public Object doGetTemplating()
doGetObjects
public Object doGetObjects()
doGetBrowser
public Object doGetBrowser()
handleError
public Object handleError(WebApplicationException e)
- Specified by:
handleError
in interface ModuleResource
- Overrides:
handleError
in class ModuleRoot
Copyright © 2011 Nuxeo SAS. All Rights Reserved.