org.apache.struts2.rest
Class RestActionInvocation
java.lang.Object
com.opensymphony.xwork2.DefaultActionInvocation
org.apache.struts2.rest.RestActionInvocation
- All Implemented Interfaces:
- ActionInvocation, java.io.Serializable
public class RestActionInvocation
- extends DefaultActionInvocation
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.
- See Also:
- Serialized Form
| 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 |
| 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 |
RestActionInvocation
protected RestActionInvocation(java.util.Map extraContext,
boolean pushAction)
setMimeTypeHandlerSelector
public void setMimeTypeHandlerSelector(ContentTypeHandlerManager sel)
invokeAction
protected java.lang.String invokeAction(java.lang.Object action,
ActionConfig actionConfig)
throws java.lang.Exception
- Overrides:
invokeAction in class DefaultActionInvocation
- Throws:
java.lang.Exception
processResult
protected java.lang.String processResult(ActionConfig actionConfig,
java.lang.Object methodResult)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.