org.nuxeo.ecm.webengine.gwt
Class GwtResource
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.gwt.GwtResource
- All Implemented Interfaces:
- ModuleResource, Resource, Adaptable
public abstract class GwtResource
- extends ModuleRoot
Server Entry point to a server GWT module.
Must be extended by the webengine resource used to load the studio application.
The @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");
}
- Author:
- Bogdan Stefanescu
Method Summary |
javax.ws.rs.core.Response |
getResource(String path)
Gets a static resource from the GWT module. |
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 |
GwtResource
public GwtResource()
getResource
public javax.ws.rs.core.Response getResource(String path)
- Gets a static resource from the GWT module.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.