public class FixedHostRmiClientSocketFactory extends Object implements RMIClientSocketFactory, Serializable
| Constructor and Description |
|---|
FixedHostRmiClientSocketFactory()
Default constructor.
|
FixedHostRmiClientSocketFactory(String overrideHost)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String host,
int port)
Create a client socket connected to the specified overrideHost and port.
|
String |
getOverrideHost()
Getter for property 'overrideHost'.
|
void |
setOverrideHost(String overrideHost)
Setter for property 'overrideHost'.
|
public FixedHostRmiClientSocketFactory()
public FixedHostRmiClientSocketFactory(String overrideHost)
overrideHost - host/ip to enforcepublic Socket createSocket(String host, int port) throws IOException
createSocket in interface RMIClientSocketFactoryhost - the host name IGNORED if an override configuredport - the port numberIOException - if an I/O error occurs during socket creationpublic String getOverrideHost()
public void setOverrideHost(String overrideHost)
overrideHost - Value to set for property 'overrideHost'.Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.