Package org.apache.juneau.rest.processor
Class PlainTextPojoProcessor
java.lang.Object
org.apache.juneau.rest.processor.PlainTextPojoProcessor
- All Implemented Interfaces:
ResponseProcessor
Response handler for plain-old Java objects when a serializer match is not found and they're asking for plain/text or anything.
See Also:
-
Field Summary
Fields inherited from interface org.apache.juneau.rest.processor.ResponseProcessor
FINISHED, NEXT, RESTART
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
process
(RestOpSession opSession) Process this response if possible.
-
Constructor Details
-
PlainTextPojoProcessor
public PlainTextPojoProcessor()
-
-
Method Details
-
process
Description copied from interface:ResponseProcessor
Process this response if possible.- Specified by:
process
in interfaceResponseProcessor
- Parameters:
opSession
- The HTTP call.- Returns:
- One of the following codes:
0 - The processor could not handle the request.1 - The processor was able to fully handle the request.2 - The processor was able to partially handle the request by replacing the output. The response processors should start over.
- Throws:
IOException
- If low-level exception occurred on output stream.
Results in aHttpServletResponse.SC_INTERNAL_SERVER_ERROR
error.BasicHttpException
- If some other exception occurred.
Can be used to provide an appropriate HTTP response code and message.NotAcceptable
-