Package org.forgerock.http.header
Class ForwardedHeader.Hop
java.lang.Object
org.forgerock.http.header.ForwardedHeader.Hop
- Enclosing class:
 - ForwardedHeader
 
This class represents a request's hop detail.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
Hop
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
Construct aForwardedHeader.Hop.- Parameters:
 hopDetails- the hop details as one long http key value list. eg : "key=value;key2="value nb 2";key3=314"
 
 - 
 - 
Method Details
- 
getForAsIp
Get the client node IP if set as an IPv4/v6 address.- Returns:
 - the client IP address or null if not set.
 
 - 
getByAsIp
Get the proxy node IP if set as an IPv4/v6 address.- Returns:
 - the proxy IP address or null if not set.
 
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -