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;
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, setUriInfo
disptachAdapter, isAdapter
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
getAdapter
public Object doGet()
public Object doGetHello()
public Object doGetTemplating()
public Object doGetObjects()
public Object doGetBrowser()
public Object handleError(javax.ws.rs.WebApplicationException e)
handleError
in interface ModuleResource
handleError
in class ModuleRoot
Copyright © 2015 Nuxeo SA. All rights reserved.