Class ForwardedSchemeHeaderRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.HeaderRule
org.eclipse.jetty.rewrite.handler.ForwardedSchemeHeaderRule
Set the scheme for the request
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.rewrite.handler.Rule
Rule.ApplyURI
-
Field Summary
Fields inherited from class org.eclipse.jetty.rewrite.handler.Rule
_handling, _terminating
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.jetty.rewrite.handler.HeaderRule
getHeader, getHeaderValue, matchAndApply, setHeader, setHeaderValue, toString
Methods inherited from class org.eclipse.jetty.rewrite.handler.Rule
isHandling, isTerminating, setHandling, setTerminating
-
Constructor Details
-
ForwardedSchemeHeaderRule
public ForwardedSchemeHeaderRule()
-
-
Method Details
-
getScheme
-
setScheme
- Parameters:
scheme
- the scheme to set on the request. Defaults to "https"
-
apply
protected String apply(String target, String value, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from class:HeaderRule
Apply the rule to the request- Specified by:
apply
in classHeaderRule
- Parameters:
target
- field to attempt matchvalue
- header value foundrequest
- request objectresponse
- response object- Returns:
- The target (possible updated)
-