Package io.undertow.server.handlers
Class StoredResponseHandler
- java.lang.Object
-
- io.undertow.server.handlers.StoredResponseHandler
-
- All Implemented Interfaces:
HttpHandler
public class StoredResponseHandler extends Object implements HttpHandler
A handler that buffers the full response and attaches it to the exchange. This makes use ofStoredResponseStreamSinkConduit
This will be made available once the response is fully complete, so should generally be read in an
ExchangeCompletionListener
- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoredResponseHandler.Builder
-
Constructor Summary
Constructors Constructor Description StoredResponseHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.String
toString()
-
-
-
Constructor Detail
-
StoredResponseHandler
public StoredResponseHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
-