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.
OperationContext.ChainCallback
Modifier and Type | Field and Description |
---|---|
protected int |
httpStatus
Specify the http status when no failure occurs.
|
chainCallback, 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.
|
protected void |
deferredDispose() |
void |
dispose() |
int |
getHttpStatus() |
void |
setHttpStatus(int httpStatus) |
addChainCallback, addCleanupHandler, addTrace, clear, containsKey, containsValue, entrySet, get, getAdapter, getChainCallback, getCoreSession, getFormattedTrace, getInput, getLoginStack, getPrincipal, getSubContext, getTrace, getVars, isCommit, isEmpty, keySet, peek, pop, pull, push, put, putAll, remove, removeCleanupHandler, setCommit, setCoreSession, setInput, setRollback, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
protected int httpStatus
public RestOperationContext()
public void addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
public int getHttpStatus()
public void setHttpStatus(int httpStatus)
protected void deferredDispose() throws OperationException
OperationException
public void dispose()
dispose
in class OperationContext
Copyright © 2016 Nuxeo SA. All rights reserved.