public class RestrictingRMISocketFactory extends RMISocketFactory
RMISocketFactory
implementation which allow to bind JMX to a specific
IPConstructor and Description |
---|
RestrictingRMISocketFactory() |
RestrictingRMISocketFactory(String address) |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket(int port)
Create a
ServerSocket which is bound to an specific address and
the given port. |
Socket |
createSocket(String host,
int port)
Create a new
Socket for the given host and port |
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
public RestrictingRMISocketFactory(String address)
public RestrictingRMISocketFactory()
public ServerSocket createServerSocket(int port) throws IOException
ServerSocket
which is bound to an specific address and
the given port. The address can be specified by the System Property
james.jmx.address. If none is given it will use localhostcreateServerSocket
in interface RMIServerSocketFactory
createServerSocket
in class RMISocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException
Socket
for the given host and portcreateSocket
in interface RMIClientSocketFactory
createSocket
in class RMISocketFactory
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.