Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.gwt
Class GwtResource

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by org.nuxeo.ecm.webengine.gwt.GwtResource
All Implemented Interfaces:
Resource, Adaptable

public abstract class GwtResource
extends DefaultObject

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

Constructor Summary
GwtResource()
           
 
Method Summary
 javax.ws.rs.core.Response getResource(java.lang.String path)
          Gets a static resource from the GWT module.
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
 
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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GwtResource

public GwtResource()
Method Detail

getResource

public javax.ws.rs.core.Response getResource(java.lang.String path)
Gets a static resource from the GWT module.


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.