Package io.undertow.server.handlers
Class HttpContinueAcceptingHandler
- java.lang.Object
-
- io.undertow.server.handlers.HttpContinueAcceptingHandler
-
- All Implemented Interfaces:
HttpHandler
public class HttpContinueAcceptingHandler extends Object implements HttpHandler
Handler that provides support for HTTP/1.1 continue responses.If the provided predicate returns
truethen 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 classHttpContinueAcceptingHandler.Builderstatic classHttpContinueAcceptingHandler.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 voidhandleRequest(HttpServerExchange exchange)Handle the request.StringtoString()
-
-
-
Constructor Detail
-
HttpContinueAcceptingHandler
public HttpContinueAcceptingHandler(HttpHandler next, Predicate accept)
-
HttpContinueAcceptingHandler
public HttpContinueAcceptingHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-