public class GrpcMessagingProxy extends Object
Constructor and Description |
---|
GrpcMessagingProxy()
Creates new proxy configuration.
|
Modifier and Type | Method and Description |
---|---|
GrpcMessagingProxy |
addProxy(InetSocketAddress address,
InetSocketAddress proxy)
Adds a new proxy mapping.
|
InetSocketAddress |
getProxyFor(InetSocketAddress address) |
boolean |
hasProxyFor(InetSocketAddress address) |
public GrpcMessagingProxy addProxy(InetSocketAddress address, InetSocketAddress proxy)
address
- source address that has been proxiedproxy
- proxy address for source addresspublic boolean hasProxyFor(InetSocketAddress address)
address
- address to check for proxy configurationtrue
if given address has proxy configurationpublic InetSocketAddress getProxyFor(InetSocketAddress address)
address
- source addressCopyright © 2023. All Rights Reserved.