public class SamplesRoot extends ModuleRoot
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;
httpHeaders, request, uriInfo| Constructor and Description |
|---|
SamplesRoot() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doGet() |
Object |
doGetBrowser() |
Object |
doGetHello() |
Object |
doGetObjects() |
Object |
doGetTemplating() |
Object |
handleError(javax.ws.rs.WebApplicationException e) |
getLink, getSkinResource, setHttpHeaders, setHttpRequest, setUriInfodisptachAdapter, isAdaptercheckGuard, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckGuard, 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, setRootgetAdapterpublic SamplesRoot()
public Object doGetHello()
public Object doGetTemplating()
public Object doGetObjects()
public Object doGetBrowser()
public Object handleError(javax.ws.rs.WebApplicationException e)
handleError in interface ModuleResourcehandleError in class ModuleRootCopyright © 2016 Nuxeo SA. All rights reserved.