- java.lang.Object
-
- org.praxislive.hub.net.DefaultProxyInfo
-
- All Implemented Interfaces:
ProxyInfo
public class DefaultProxyInfo extends Object implements ProxyInfo
Default implementation ofProxyInfothat can be parsed from a PMap, used byHubConfiguration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ProxyInfo.Exec>exec()Access an optionalProxyInfo.Execimplementation giving information about the process that should be executed when initializing this proxy.static DefaultProxyInfofromMap(PMap conf)Parse a DefaultProxyInfo from a provided PMap.booleanmatches(String rootID, ComponentType rootType)Check whether this proxy should be used for creating and accessing the given root ID and root type.InetSocketAddresssocketAddress()Access the socket address to use to connect to the proxy.
-
-
-
Method Detail
-
socketAddress
public InetSocketAddress socketAddress()
Description copied from interface:ProxyInfoAccess the socket address to use to connect to the proxy.- Specified by:
socketAddressin interfaceProxyInfo- Returns:
- socket address
-
matches
public boolean matches(String rootID, ComponentType rootType)
Description copied from interface:ProxyInfoCheck whether this proxy should be used for creating and accessing the given root ID and root type. The order of provided proxies is important as the first matching proxy will take precedence.
-
exec
public Optional<ProxyInfo.Exec> exec()
Description copied from interface:ProxyInfoAccess an optionalProxyInfo.Execimplementation giving information about the process that should be executed when initializing this proxy.
-
fromMap
public static DefaultProxyInfo fromMap(PMap conf)
Parse a DefaultProxyInfo from a provided PMap.- Parameters:
conf- proxy info as PMap- Returns:
- DefaultProxyInfo parsed from configuration map
- Throws:
IllegalArgumentException- if map is incorrectly structured
-
-