public class RestOperationContext extends OperationContext
RequestContext and RequestCleanupHandler.
 This way temporary resources like files used by operations are removed after the response is sent to the client.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description | 
|---|---|
protected int | 
httpStatus
Specify the http status when no failure occurs. 
 | 
callback, cleanupHandlers, commit, input, loginStack, stacks, trace, vars| Constructor and Description | 
|---|
RestOperationContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
Must be called before context execution. 
 | 
int | 
getHttpStatus()  | 
void | 
setHttpStatus(int httpStatus)  | 
addCleanupHandler, call, callWithChainParameters, callWithContextVar, close, entrySet, get, getAdapter, getCallback, getChainParameter, getChainParameters, getCoreSession, getInput, getLoginStack, getPrincipal, getSubContext, getSubContext, getVars, isCommit, peek, pop, pull, push, put, putChainParameters, remove, removeChainParameters, removeCleanupHandler, resolve, setCallback, setCommit, setCoreSession, setInput, setRollbackclear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected int httpStatus
public RestOperationContext()
public void addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
public int getHttpStatus()
public void setHttpStatus(int httpStatus)
Copyright © 2019 Nuxeo. All rights reserved.