public class WebMatcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Dict |
dict
The serialized matcher representation.
|
protected WebService |
service
The parent web service for this matcher.
|
Modifier | Constructor and Description |
---|---|
protected |
WebMatcher(WebService service,
Dict dict)
Creates a new web matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
auth()
The user authentication required flag.
|
java.lang.String |
host()
The web server host name to match.
|
int |
match(Request request)
Matches the specified request and returns the matching score.
|
java.lang.String |
method()
The HTTP request method to match.
|
WebService |
parent()
Returns the parent web service this matcher is connected to.
|
java.lang.String |
path()
The base request path to match.
|
int |
port()
The web server port number to match.
|
int |
prio()
Returns the matcher priority.
|
void |
process(Request request)
Processes a matching request.
|
java.lang.String |
protocol()
The request protocol to match (i.e.
|
int |
score()
Returns the web matcher score.
|
protected WebService service
protected Dict dict
protected WebMatcher(WebService service, Dict dict)
service
- the web service to usedict
- the serialized representationpublic WebService parent()
public java.lang.String method()
public java.lang.String protocol()
public java.lang.String host()
public int port()
public java.lang.String path()
public boolean auth()
public int prio()
public int score()
public int match(Request request)
request
- the request to matchpublic void process(Request request)
request
- the request to process