public class ServerNameCondition extends AbstractCondition
ServletRequest.getServerName()
matches a regexp.
The match is always case-insensitive.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTagName()
Returns a descriptive name for the tag, for logging and for
error messages.
|
boolean |
isMatch(HttpServletRequest request,
HttpServletResponse response)
Returns true if the condition passes.
|
addHeaderValue, destroy, init, required
public java.lang.String getTagName()
Condition
getTagName
in interface Condition
getTagName
in class AbstractCondition
public boolean isMatch(HttpServletRequest request, HttpServletResponse response)
Condition