Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by org.nuxeo.ecm.automation.OperationContext
              extended by org.nuxeo.ecm.automation.server.jaxrs.RestOperationContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.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 UserSession and RequestCleanupHandler.

This way temporary resources like files used by operations are removed after the response is sent to the client.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RestOperationContext()
           
 
Method Summary
 void addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
          Must be called before context execution
 void dispose()
           
 
Methods inherited from class org.nuxeo.ecm.automation.OperationContext
addCleanupHandler, getAdapter, getCoreSession, getInput, getLoginStack, getPrincipal, isCommit, peek, pop, pull, push, removeCleanupHandler, setCommit, setCoreSession, setInput
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RestOperationContext

public RestOperationContext()
Method Detail

addRequestCleanupHandler

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


dispose

public void dispose()
Overrides:
dispose in class OperationContext

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.