public interface ContentTypeHandler
| Modifier and Type | Method and Description | 
|---|---|
| String | fromObject(ActionInvocation invocation,
          Object obj,
          String resultCode,
          Writer stream) | 
| String | fromObject(Object obj,
          String resultCode,
          Writer stream)Deprecated. 
 use version which requires  ActionInvocation | 
| String | getContentType()Gets the content type for this handler | 
| String | getExtension()Gets the extension this handler supports | 
| void | toObject(ActionInvocation invocation,
        Reader in,
        Object target) | 
| void | toObject(Reader in,
        Object target)Deprecated. 
 use version which requires  ActionInvocation | 
@Deprecated void toObject(Reader in, Object target) throws IOException
ActionInvocationin - The input stream, usually the body of the requesttarget - The target, usually the action classIOException - If unable to write to the output streamvoid toObject(ActionInvocation invocation, Reader in, Object target) throws IOException
IOException@Deprecated String fromObject(Object obj, String resultCode, Writer stream) throws IOException
ActionInvocationobj - The object to write to the stream, usually the Action classresultCode - The original result codestream - The output stream, usually the responseIOException - If unable to write to the output streamString fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException
IOExceptionString getContentType()
String getExtension()
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.