|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.DefaultActionInvocation
org.apache.struts2.rest.RestActionInvocation
public class RestActionInvocation
Extends the usual ActionInvocation
to add support for processing the object returned
from the action execution. This allows us to support methods that return HttpHeaders
as well as apply content type-specific operations to the result.
Field Summary |
---|
Fields inherited from class com.opensymphony.xwork2.DefaultActionInvocation |
---|
action, actionEventListener, container, executed, explicitResult, extraContext, interceptors, invocationContext, objectFactory, preResultListeners, proxy, pushAction, result, resultCode, stack, unknownHandlerManager, valueStackFactory |
Constructor Summary | |
---|---|
protected |
RestActionInvocation(java.util.Map extraContext,
boolean pushAction)
|
Method Summary | |
---|---|
protected java.lang.String |
invokeAction(java.lang.Object action,
com.opensymphony.xwork2.config.entities.ActionConfig actionConfig)
|
protected java.lang.String |
processResult(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig,
java.lang.Object methodResult)
|
void |
setMimeTypeHandlerSelector(ContentTypeHandlerManager sel)
|
Methods inherited from class com.opensymphony.xwork2.DefaultActionInvocation |
---|
addPreResultListener, createAction, createContextMap, createResult, getAction, getInvocationContext, getProxy, getResult, getResultCode, getStack, init, invoke, invokeActionOnly, isExecuted, setActionEventListener, setConfiguration, setContainer, setObjectFactory, setResultCode, setUnknownHandlerManager, setValueStackFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RestActionInvocation(java.util.Map extraContext, boolean pushAction)
Method Detail |
---|
public void setMimeTypeHandlerSelector(ContentTypeHandlerManager sel)
protected java.lang.String invokeAction(java.lang.Object action, com.opensymphony.xwork2.config.entities.ActionConfig actionConfig) throws java.lang.Exception
invokeAction
in class com.opensymphony.xwork2.DefaultActionInvocation
java.lang.Exception
protected java.lang.String processResult(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig, java.lang.Object methodResult) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |