Package io.undertow.server.handlers
Class StoredResponseHandler
- java.lang.Object
-
- io.undertow.server.handlers.StoredResponseHandler
-
- All Implemented Interfaces:
HttpHandler
public class StoredResponseHandler extends java.lang.Object implements HttpHandler
A handler that buffers the full response and attaches it to the exchange. This makes use ofStoredResponseStreamSinkConduitThis 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 classStoredResponseHandler.Builder
-
Constructor Summary
Constructors Constructor Description StoredResponseHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.java.lang.StringtoString()
-
-
-
Constructor Detail
-
StoredResponseHandler
public StoredResponseHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-