|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.net.connector.URIRequestInfo | +--org.exolab.jms.net.socket.SocketRequestInfo
Implementation of the ConnectionRequestInfo
interface that enables socket based connectors to pass data across the
connection request flow.
Constructor Summary | |
SocketRequestInfo(URI uri)
Construct a new SocketRequestInfo . |
|
SocketRequestInfo(URI uri,
Properties properties)
Construct a new SocketRequestInfo . |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks whether this instance is equal to another. |
protected boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Helper to compare two objects for equality. |
void |
export(Properties properties)
Helper to export this to a Properties instance. |
java.lang.String |
getAlternativeHost()
Returns the alternative host. |
URI |
getAlternativeURI()
Helper to return the alternative URI. |
boolean |
getBindAll()
Determines if socket connections should be accepted on all addresses, on a multi-homed host. |
int |
getConnectionRequestQueueSize()
Returns the maximum queue size for incoming connection indications. |
void |
setAlternativeHost(java.lang.String host)
Sets the alternative host. |
void |
setBindAll(boolean bindAll)
Sets how socket connections should be accepted, on a multi-homed host. |
void |
setConnectionRequestQueueSize(int size)
Sets the maximum queue size for incoming connection indications (a request to connect). |
Methods inherited from class org.exolab.jms.net.connector.URIRequestInfo |
getHost, getHostAddress, getPort, getPrincipal, getURI, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SocketRequestInfo(URI uri) throws ResourceException
SocketRequestInfo
.uri
- the URIResourceException
- if uri
has an invalid query stringpublic SocketRequestInfo(URI uri, Properties properties) throws ResourceException
SocketRequestInfo
.uri
- the URIproperties
- the properties to populate this fromResourceException
- if any of the properties are invalidMethod Detail |
public void setAlternativeHost(java.lang.String host)
URIRequestInfo.getURI()
fail.
This can be useful if the server is behind a NAT firewall, and clients
need to connect from both outside and inside the firewall.host
- the alternative host. May be null
public java.lang.String getAlternativeHost()
null
if none has been set.public URI getAlternativeURI() throws ResourceException
URIRequestInfo.getURI()
with the host set to getAlternativeHost()
.null
if the alternative
host is not set.ResourceException
- if the alternative URI is invalidpublic void setConnectionRequestQueueSize(int size)
size
- the queue sizepublic int getConnectionRequestQueueSize()
public void setBindAll(boolean bindAll)
bindAll
- if true
, server sockets will accept
connections on all local addresses. If false
,
only connections to a specified address will be accepted.public boolean getBindAll()
true
if server sockets should accept connections on
all local addresses; otherwise false
, indicating
that only connections to a specified address will be accepted.public void export(Properties properties)
Properties
instance.export
in class URIRequestInfo
properties
- the properties to export to.public boolean equals(java.lang.Object other)
equals
in class URIRequestInfo
other
- the object to comparetrue
if the two instances are equal; otherwise
false
protected boolean equals(java.lang.Object o1, java.lang.Object o2)
o1
- the first object to compareo2
- the second object to comparetrue
if the objects are equal, otherwise
false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |