Package org.apache.struts2.rest.handler
Interface ContentTypeHandler
- All Known Implementing Classes:
- AbstractContentTypeHandler,- FormUrlEncodedHandler,- HtmlHandler,- JacksonJsonHandler,- JacksonXmlHandler,- JuneauXmlHandler,- MultipartFormDataHandler,- XStreamHandler
public interface ContentTypeHandler
Handles transferring content to and from objects for a specific content type
- 
Method SummaryModifier and TypeMethodDescriptionfromObject(ActionInvocation invocation, Object obj, String resultCode, Writer stream) Gets the content type for this handlerGets the extension this handler supportsvoidtoObject(ActionInvocation invocation, Reader in, Object target) 
- 
Method Details- 
toObject- Throws:
- IOException
 
- 
fromObjectString fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException - Throws:
- IOException
 
- 
getContentTypeString getContentType()Gets the content type for this handler- Returns:
- The mime type
 
- 
getExtensionString getExtension()Gets the extension this handler supports- Returns:
- The extension
 
 
-