Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs
Class RestOperationContext

java.lang.Object
  extended by org.nuxeo.ecm.automation.OperationContext
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
RestOperationContext()
           
 
Method Summary
 void addRequestCleanupHandler(HttpServletRequest request)
          Must be called before context execution.
 void dispose()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RestOperationContext

public RestOperationContext()
Method Detail

addRequestCleanupHandler

public void addRequestCleanupHandler(HttpServletRequest request)
Must be called before context execution.


dispose

public void dispose()
Overrides:
dispose in class OperationContext

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.