public class RegexHttpRequestFilter extends Object implements HttpRequestFilter
Modifier and Type | Method and Description |
---|---|
void |
filter(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
Makes any desired modifications to the request.
|
static RegexHttpRequestFilter |
newHostAndPathFilter(String hostRegex,
String pathRegex,
HttpRequestFilter filter)
Creates a new filter that filters on the request host.
|
static RegexHttpRequestFilter |
newHostFilter(String hostRegex,
HttpRequestFilter filter)
Creates a new filter that filters on the request host.
|
static RegexHttpRequestFilter |
newPathFilter(String pathRegex,
HttpRequestFilter filter)
Creates a new filter that filters on the request path.
|
public static RegexHttpRequestFilter newHostFilter(String hostRegex, HttpRequestFilter filter)
hostRegex
- The regular expression for matching the host.filter
- The filter to delegate to if the host matches.public static RegexHttpRequestFilter newPathFilter(String pathRegex, HttpRequestFilter filter)
pathRegex
- The regular expression for matching the path.filter
- The filter to delegate to if the path matches.public static RegexHttpRequestFilter newHostAndPathFilter(String hostRegex, String pathRegex, HttpRequestFilter filter)
hostRegex
- The regular expression for matching the host.pathRegex
- The regular expression for matching the path.filter
- The filter to delegate to if the host matches.public void filter(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
HttpRequestFilter
filter
in interface HttpRequestFilter
httpRequest
- The request.Copyright © 2009–2015 LittleShoot. All rights reserved.