Top Description Fields Constructors Methods
io.undertow.server.handlers

public Class ConfiguredPushHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.util.HeaderMap, .HttpString, .Methods, .PathMatcher

Handler that pushes resources based on a provided URL
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final HttpHandler
private final PathMatcher<String[]>
private final HeaderMap

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ConfiguredPushHandler
public ConfiguredPushHandler
addRoute(String url, String... resourcesToPush)

public void
handleRequest(HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private final HttpHandler next
pathMatcherback to summary
private final PathMatcher<String[]> pathMatcher
requestHeadersback to summary
private final HeaderMap requestHeaders

Constructor Detail

ConfiguredPushHandlerback to summary
public ConfiguredPushHandler(HttpHandler next)

Method Detail

addRequestHeaderback to summary
public ConfiguredPushHandler addRequestHeader(HttpString name, String value)
addRouteback to summary
public ConfiguredPushHandler addRoute(String url, String... resourcesToPush)
handleRequestback to summary
public void handleRequest(HttpServerExchange exchange) throws Exception

Implements io.undertow.server.HttpHandler.handleRequest.

Doc from io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Parameters
exchange:HttpServerExchange

the HTTP request/response exchange

Annotations
@Override