Package com.linecorp.armeria.server
Class ProxiedAddresses
java.lang.Object
com.linecorp.armeria.server.ProxiedAddresses
An interface to provide source and destination addresses delivered from a proxy server.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the destination addresses of the proxied request.boolean
int
hashCode()
static ProxiedAddresses
of
(InetSocketAddress sourceAddress) Creates a new instance with the specifiedsourceAddress
.static ProxiedAddresses
of
(InetSocketAddress sourceAddress, Iterable<? extends InetSocketAddress> destinationAddresses) Creates a new instance with the specifiedsourceAddress
anddestinationAddresses
.static ProxiedAddresses
of
(InetSocketAddress sourceAddress, InetSocketAddress destinationAddress) Creates a new instance with the specifiedsourceAddress
anddestinationAddress
.Returns the source address of the proxied request.toString()
-
Method Details
-
of
Creates a new instance with the specifiedsourceAddress
. Note that port0
means that the port number is unknown. -
of
public static ProxiedAddresses of(InetSocketAddress sourceAddress, InetSocketAddress destinationAddress) Creates a new instance with the specifiedsourceAddress
anddestinationAddress
. Note that port0
means that the port number is unknown. -
of
public static ProxiedAddresses of(InetSocketAddress sourceAddress, Iterable<? extends InetSocketAddress> destinationAddresses) Creates a new instance with the specifiedsourceAddress
anddestinationAddresses
. Note that port0
means that the port number is unknown. -
sourceAddress
Returns the source address of the proxied request. Note that port0
means that the port number is unknown. -
destinationAddresses
Returns the destination addresses of the proxied request. Note that port0
means that the port number is unknown. -
equals
-
hashCode
public int hashCode() -
toString
-