ForwardedSchemeHeaderRule
public abstract class HeaderRule extends Rule
Rule.ApplyURI
_handling, _terminating
Constructor | Description |
---|---|
HeaderRule() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract java.lang.String |
apply(java.lang.String target,
java.lang.String value,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Apply the rule to the request
|
java.lang.String |
getHeader() |
|
java.lang.String |
getHeaderValue() |
|
java.lang.String |
matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
This method calls tests the rule against the request/response pair and if the Rule
applies, then the rule's action is triggered.
|
void |
setHeader(java.lang.String header) |
|
void |
setHeaderValue(java.lang.String headerValue) |
|
java.lang.String |
toString() |
Returns the handling and terminating flag values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isHandling, isTerminating, setHandling, setTerminating
public java.lang.String getHeader()
public void setHeader(java.lang.String header)
header
- the header name to check forpublic java.lang.String getHeaderValue()
public void setHeaderValue(java.lang.String headerValue)
headerValue
- the header value to match against. If null, then the
presence of the header is enough to matchpublic java.lang.String matchAndApply(java.lang.String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Rule
matchAndApply
in class Rule
target
- The target of the requestrequest
- the requestresponse
- the responsejava.io.IOException
- if unable to match the ruleprotected abstract java.lang.String apply(java.lang.String target, java.lang.String value, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
target
- field to attempt matchvalue
- header value foundrequest
- request objectresponse
- response objectjava.io.IOException
- exceptions dealing with operating on request or response
objectsCopyright © 1995–2018 Webtide. All rights reserved.