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, setContext
disptachAdapter, isAdapter
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
clone, equals, finalize, 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 GwtResource()
public javax.ws.rs.core.Response getResource(String path) throws FileNotFoundException
FileNotFoundException
Copyright © 2018 Nuxeo. All rights reserved.