Package com.linecorp.armeria.server
Class ProxiedAddresses
java.lang.Object
com.linecorp.armeria.server.ProxiedAddresses
public final class ProxiedAddresses extends Object
An interface to provide source and destination addresses delivered from a proxy server.
-
Method Summary
Modifier and Type Method Description List<InetSocketAddress>
destinationAddresses()
Returns the destination addresses of the proxied request.boolean
equals(Object o)
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
.InetSocketAddress
sourceAddress()
Returns the source address of the proxied request.String
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
-