public final class ReaderHandler extends Object implements ResponseHandler
Reader objects.
Simply pipes the contents of the Reader to RestResponse.getNegotiatedWriter().
| Constructor and Description |
|---|
ReaderHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(RestRequest req,
RestResponse res)
Process this response if possible.
|
public ReaderHandler()
public boolean handle(RestRequest req, RestResponse res) throws IOException, NotAcceptable, HttpException
ResponseHandlerhandle in interface ResponseHandlerreq - 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.HttpException - If some other exception occurred.
Can be used to provide an appropriate HTTP response code and message.NotAcceptableCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.