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.HttpServletRequest
request
protected javax.servlet.http.HttpServletResponse
response
protected AutomationService
service
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description ExecutableResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected OperationContext
createContext(ExecutionRequest xreq)
Object
doPost(ExecutionRequest xreq)
abstract Object
execute(ExecutionRequest req)
abstract String
getId()
abstract boolean
isChain()
-
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()
-
-