org.apache.struts2.rest
Class RestActionInvocation

java.lang.Object
  extended by com.opensymphony.xwork2.DefaultActionInvocation
      extended by org.apache.struts2.rest.RestActionInvocation
All Implemented Interfaces:
com.opensymphony.xwork2.ActionInvocation, java.io.Serializable

public class RestActionInvocation
extends com.opensymphony.xwork2.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

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, unknownHandler, 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, setContainer, setObjectFactory, setResultCode, setUnknownHandler, setValueStackFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestActionInvocation

protected RestActionInvocation(java.util.Map extraContext,
                               boolean pushAction)
Method Detail

setMimeTypeHandlerSelector

public void setMimeTypeHandlerSelector(ContentTypeHandlerManager sel)

invokeAction

protected java.lang.String invokeAction(java.lang.Object action,
                                        com.opensymphony.xwork2.config.entities.ActionConfig actionConfig)
                                 throws java.lang.Exception
Overrides:
invokeAction in class com.opensymphony.xwork2.DefaultActionInvocation
Throws:
java.lang.Exception

processResult

protected java.lang.String processResult(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig,
                                         java.lang.Object methodResult)
                                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.