Package io.undertow.server.handlers
Class ConfiguredPushHandler
- java.lang.Object
-
- io.undertow.server.handlers.ConfiguredPushHandler
-
- All Implemented Interfaces:
HttpHandler
public class ConfiguredPushHandler extends java.lang.Object implements HttpHandler
Handler that pushes resources based on a provided URL- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ConfiguredPushHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfiguredPushHandler
addRequestHeader(HttpString name, java.lang.String value)
ConfiguredPushHandler
addRoute(java.lang.String url, java.lang.String... resourcesToPush)
void
handleRequest(HttpServerExchange exchange)
Handle the request.
-
-
-
Constructor Detail
-
ConfiguredPushHandler
public ConfiguredPushHandler(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
-
addRequestHeader
public ConfiguredPushHandler addRequestHeader(HttpString name, java.lang.String value)
-
addRoute
public ConfiguredPushHandler addRoute(java.lang.String url, java.lang.String... resourcesToPush)
-
-