|
||||||||||
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 | |
---|---|
java.lang.String |
fromObject(java.lang.Object obj,
java.lang.String resultCode,
java.io.Writer stream)
Writes content to the stream |
java.lang.String |
getContentType()
Gets the content type for this handler |
java.lang.String |
getExtension()
Gets the extension this handler supports |
void |
toObject(java.io.Reader in,
java.lang.Object target)
Populates an object using data from the input stream |
Method Detail |
---|
void toObject(java.io.Reader in, java.lang.Object target) throws java.io.IOException
in
- The input stream, usually the body of the requesttarget
- The target, usually the action class
java.io.IOException
java.lang.String fromObject(java.lang.Object obj, java.lang.String resultCode, java.io.Writer stream) throws java.io.IOException
obj
- The object to write to the stream, usually the Action classresultCode
- The original result codestream
- The output stream, usually the response
java.io.IOException
- If unable to write to the output streamjava.lang.String getContentType()
java.lang.String getExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |