org.apache.struts2.rest
Class ContentTypeInterceptor

java.lang.Object
  extended by org.apache.struts2.rest.ContentTypeInterceptor
All Implemented Interfaces:
Interceptor, java.io.Serializable

public class ContentTypeInterceptor
extends java.lang.Object
implements Interceptor

Uses the content handler to apply the request body to the action

See Also:
Serialized Form

Constructor Summary
ContentTypeInterceptor()
           
 
Method Summary
 void destroy()
           
 void init()
           
 java.lang.String intercept(ActionInvocation invocation)
           
 void setContentTypeHandlerSelector(ContentTypeHandlerManager sel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeInterceptor

public ContentTypeInterceptor()
Method Detail

setContentTypeHandlerSelector

public void setContentTypeHandlerSelector(ContentTypeHandlerManager sel)

destroy

public void destroy()
Specified by:
destroy in interface Interceptor

init

public void init()
Specified by:
init in interface Interceptor

intercept

public java.lang.String intercept(ActionInvocation invocation)
                           throws java.lang.Exception
Specified by:
intercept in interface Interceptor
Throws:
java.lang.Exception


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