public abstract class GwtResource extends ModuleRoot
@GET method must be defined by the subclasses to point to the main HTML file of the GWT
module. Example:
@GET @Produces("text/html")
public Object getIndex() {
return getTemplate("index.ftl");
}
request, sic| Constructor and Description |
|---|
GwtResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getResource(String path)
Gets a static resource from the GWT module.
|
getLink, getSkinResource, handleError, setContextdisptachAdapter, 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 GwtResource()
public javax.ws.rs.core.Response getResource(String path) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2017 Nuxeo. All rights reserved.