Package io.undertow.server.handlers
Class HttpContinueAcceptingHandler
- java.lang.Object
-
- io.undertow.server.handlers.HttpContinueAcceptingHandler
-
- All Implemented Interfaces:
HttpHandler
public class HttpContinueAcceptingHandler extends java.lang.Object implements HttpHandler
Handler that provides support for HTTP/1.1 continue responses.If the provided predicate returns
true
then the request will be accepted, otherwise it will be rejected. If no predicate is supplied then all requests will be accepted.- Author:
- Stuart Douglas
- See Also:
HttpContinue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpContinueAcceptingHandler.Builder
static class
HttpContinueAcceptingHandler.Wrapper
-
Constructor Summary
Constructors Constructor Description HttpContinueAcceptingHandler(HttpHandler next)
HttpContinueAcceptingHandler(HttpHandler next, Predicate accept)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.java.lang.String
toString()
-
-
-
Constructor Detail
-
HttpContinueAcceptingHandler
public HttpContinueAcceptingHandler(HttpHandler next, Predicate accept)
-
HttpContinueAcceptingHandler
public HttpContinueAcceptingHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-