org.nuxeo.ecm.automation.server.jaxrs
Class RestOperationContext
java.lang.Object
org.nuxeo.ecm.automation.OperationContext
org.nuxeo.ecm.automation.server.jaxrs.RestOperationContext
- All Implemented Interfaces:
- Map<String,Object>
public class RestOperationContext
- extends OperationContext
A custom operation context to be used in REST calls on server side. This
implementation is delegating the post execution cleanup to the webengine
filter through RequestContext and RequestCleanupHandler.
This way temporary resources like files used by operations are removed after
the response is sent to the client.
- Author:
- Bogdan Stefanescu
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class org.nuxeo.ecm.automation.OperationContext |
addCleanupHandler, addTrace, clear, containsKey, containsValue, entrySet, get, getAdapter, getCoreSession, getFormattedTrace, getInput, getLoginStack, getPrincipal, getTrace, getVars, isCommit, isEmpty, keySet, peek, pop, pull, push, put, putAll, remove, removeCleanupHandler, setCommit, setCoreSession, setInput, setRollback, size, values |
RestOperationContext
public RestOperationContext()
addRequestCleanupHandler
public void addRequestCleanupHandler(HttpServletRequest request)
- Must be called before context execution.
dispose
public void dispose()
- Overrides:
dispose in class OperationContext
Copyright © 2011 Nuxeo SAS. All Rights Reserved.