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