Class ForwardedSchemeHeaderRule
- java.lang.Object
-
- org.eclipse.jetty.rewrite.handler.Rule
-
- org.eclipse.jetty.rewrite.handler.HeaderRule
-
- org.eclipse.jetty.rewrite.handler.ForwardedSchemeHeaderRule
-
public class ForwardedSchemeHeaderRule extends HeaderRule
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
Constructors Constructor Description ForwardedSchemeHeaderRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 requestjava.lang.String
getScheme()
void
setScheme(java.lang.String scheme)
-
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
-
-
-
-
Method Detail
-
getScheme
public java.lang.String getScheme()
-
setScheme
public void setScheme(java.lang.String scheme)
- Parameters:
scheme
- the scheme to set on the request. Defaults to "https"
-
apply
protected java.lang.String apply(java.lang.String target, java.lang.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)
-
-