public class DefaultHandler extends Object implements ResponseHandler
This uses the serializers defined on the response to serialize the POJO.
The Serializer
used is based on the
The
Constructor and Description |
---|
DefaultHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
handle(RestRequest req,
RestResponse res)
Process this response if possible.
|
public DefaultHandler()
public boolean handle(RestRequest req, RestResponse res) throws IOException, InternalServerError, NotAcceptable
ResponseHandler
handle
in interface ResponseHandler
req
- The HTTP servlet request.res
- The HTTP servlet response;IOException
- If low-level exception occurred on output stream.
Results in a HttpServletResponse.SC_INTERNAL_SERVER_ERROR
error.InternalServerError
NotAcceptable
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.