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.
Constructor and Description |
---|
RestOperationContext() |
Modifier and Type | Method and Description |
---|---|
void |
addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
Must be called before context execution.
|
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
public void addRequestCleanupHandler(javax.servlet.http.HttpServletRequest request)
public int getHttpStatus()
public void setHttpStatus(int httpStatus)
public void dispose()
dispose
in class OperationContext
Copyright © 2015 Nuxeo SA. All rights reserved.