Constructor and Description |
---|
HeaderMatcher() |
HeaderMatcher(String headerName,
String expectedValue) |
Modifier and Type | Method and Description |
---|---|
String |
getExpectedValue() |
String |
getHeaderName() |
boolean |
matches(WebContext context)
Check if the web context matches.
|
void |
setExpectedValue(String expectedValue) |
void |
setHeaderName(String headerName) |
String |
toString() |
protected Pattern pattern
public boolean matches(WebContext context) throws HttpAction
Matcher
matches
in interface Matcher
context
- the web contextHttpAction
- whether an additional HTTP action is requiredpublic String getHeaderName()
public void setHeaderName(String headerName)
public String getExpectedValue()
public void setExpectedValue(String expectedValue)
Copyright © 2018. All rights reserved.