Class ExecutableResource
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource
-
- Direct Known Subclasses:
OperationResource
public abstract class ExecutableResource extends DefaultObject
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequestrequestprotected javax.servlet.http.HttpServletResponseresponseprotected AutomationServiceserviceprotected CoreSessionsession
-
Constructor Summary
Constructors Constructor Description ExecutableResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected OperationContextcreateContext(ExecutionRequest xreq)ObjectdoPost(ExecutionRequest xreq)abstract Objectexecute(ExecutionRequest req)abstract StringgetId()abstract booleanisChain()-
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, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
service
@Context protected AutomationService service
-
request
@Context protected javax.servlet.http.HttpServletRequest request
-
response
@Context protected javax.servlet.http.HttpServletResponse response
-
session
@Context protected CoreSession session
-
-
Method Detail
-
createContext
protected OperationContext createContext(ExecutionRequest xreq)
-
doPost
public Object doPost(ExecutionRequest xreq)
-
getId
public abstract String getId()
-
execute
public abstract Object execute(ExecutionRequest req) throws OperationException
- Throws:
OperationException
-
isChain
public abstract boolean isChain()
-
-