|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentTypeHandler
Handles transferring content to and from objects for a specific content type
Method Summary | |
---|---|
String |
fromObject(com.opensymphony.xwork2.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(com.opensymphony.xwork2.ActionInvocation invocation,
Reader in,
Object target)
|
void |
toObject(Reader in,
Object target)
Deprecated. use version which requires ActionInvocation |
Method Detail |
---|
@Deprecated void toObject(Reader in, Object target) throws IOException
ActionInvocation
in
- The input stream, usually the body of the requesttarget
- The target, usually the action class
IOException
- If unable to write to the output streamvoid toObject(com.opensymphony.xwork2.ActionInvocation invocation, Reader in, Object target) throws IOException
IOException
@Deprecated String fromObject(Object obj, String resultCode, Writer stream) throws IOException
ActionInvocation
obj
- The object to write to the stream, usually the Action classresultCode
- The original result codestream
- The output stream, usually the response
IOException
- If unable to write to the output streamString fromObject(com.opensymphony.xwork2.ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException
IOException
String getContentType()
String getExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |