Package org.forgerock.http.header
Class ForwardedHeader.Hop
- java.lang.Object
-
- org.forgerock.http.header.ForwardedHeader.Hop
-
- Enclosing class:
- ForwardedHeader
public static class ForwardedHeader.Hop extends Object
This class represents a request's hop detail.
-
-
Constructor Summary
Constructors Constructor Description Hop(String hopDetails)
Construct aForwardedHeader.Hop
.Hop(String forDirective, String byDirective, String hostDirective, String protoDirective)
Construct aForwardedHeader.Hop
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getByAsIp()
Get the proxy node IP if set as an IPv4/v6 address.String
getForAsIp()
Get the client node IP if set as an IPv4/v6 address.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Hop
public Hop(String forDirective, String byDirective, String hostDirective, String protoDirective)
Construct aForwardedHeader.Hop
. Each field may contain double quotes.- Parameters:
forDirective
- the client's addressbyDirective
- the proxy's addresshostDirective
- the host requested at this timeprotoDirective
- the protocol used between the client and the proxy
-
Hop
public Hop(String hopDetails)
Construct aForwardedHeader.Hop
.- Parameters:
hopDetails
- the hop details as one long http key value list. eg : "key=value;key2="value nb 2";key3=314"
-
-