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 ConfiguredPushHandleraddRequestHeader(HttpString name, java.lang.String value)ConfiguredPushHandleraddRoute(java.lang.String url, java.lang.String... resourcesToPush)voidhandleRequest(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:HttpHandlerHandle the request.- Specified by:
handleRequestin 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)
-
-