public class HttpSelector extends Object implements Selector<HttpChannel>
Modifier and Type | Field and Description |
---|---|
protected Method |
method |
protected Protocol |
protocol |
protected UriPathSelector |
uriPathSelector |
Constructor and Description |
---|
HttpSelector(String uri) |
HttpSelector(String uri,
Protocol protocol,
Method method) |
Modifier and Type | Method and Description |
---|---|
HeaderResolver |
getHeaderResolver()
Return a component that can resolve headers from a key
|
Method |
getMethod() |
Object |
getObject()
Get the object being used for comparisons and equals checks.
|
Protocol |
getProtocol() |
UriPathSelector |
getUriPathSelector() |
boolean |
matches(HttpChannel key)
Indicates whether this Selector matches the
key . |
protected final Protocol protocol
protected final Method method
protected final UriPathSelector uriPathSelector
public HttpSelector(String uri)
public Object getObject()
Selector
getObject
in interface Selector<HttpChannel>
public HeaderResolver getHeaderResolver()
Selector
getHeaderResolver
in interface Selector<HttpChannel>
HeaderResolver
applicable to this Selector
type.public Protocol getProtocol()
public Method getMethod()
public UriPathSelector getUriPathSelector()
public boolean matches(HttpChannel key)
Selector
key
.matches
in interface Selector<HttpChannel>
key
- The key to matchtrue
if there's a match, otherwise false
.Copyright © 2016. All rights reserved.