org.exolab.jms.net.tcp
Class TCPSRequestInfo

java.lang.Object
  |
  +--org.exolab.jms.net.connector.URIRequestInfo
        |
        +--org.exolab.jms.net.socket.SocketRequestInfo
              |
              +--org.exolab.jms.net.tcp.TCPSRequestInfo
All Implemented Interfaces:
ConnectionRequestInfo

public class TCPSRequestInfo
extends SocketRequestInfo

Implementation of the ConnectionRequestInfo interface that enables the TCPS connector to pass data across the connection request flow.

Version:
$Revision: 1.2 $ $Date: 2005/12/01 13:44:38 $
Author:
Tim Anderson

Constructor Summary
TCPSRequestInfo(URI uri)
          Construct a new TCPSRequestInfo.
TCPSRequestInfo(URI uri, Properties properties)
          Construct a new TCPSRequestInfo.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks whether this instance is equal to another.
 void export(Properties properties)
          Helper to export this to a Properties instance.
 boolean getNeedClientAuth()
          Determines if clients must authenticate themselves on connection.
 SSLProperties getSSLProperties()
          Returns the properties used to configure the secure socket layer (SSL).
 void setNeedClientAuth(boolean required)
          Sets if clients must authenticate themselves on connection.
 void setSSLProperties(SSLProperties properties)
          Sets the properties used to configure the secure socket layer (SSL).
 
Methods inherited from class org.exolab.jms.net.socket.SocketRequestInfo
equals, getAlternativeHost, getAlternativeURI, getBindAll, getConnectionRequestQueueSize, setAlternativeHost, setBindAll, setConnectionRequestQueueSize
 
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

TCPSRequestInfo

public TCPSRequestInfo(URI uri)
                throws ResourceException
Construct a new TCPSRequestInfo.
Parameters:
uri - the URI
Throws:
ResourceException - if uri has an invalid query string

TCPSRequestInfo

public TCPSRequestInfo(URI uri,
                       Properties properties)
                throws ResourceException
Construct a new TCPSRequestInfo.
Parameters:
uri - the URI
properties - the properties to populate this from
Throws:
ResourceException - if any of the properties are invalid
Method Detail

getSSLProperties

public SSLProperties getSSLProperties()
Returns the properties used to configure the secure socket layer (SSL).
Returns:
the SSL configuration properties, or null if unset

setSSLProperties

public void setSSLProperties(SSLProperties properties)
Sets the properties used to configure the secure socket layer (SSL).
Parameters:
properties - the SSL configuration properties

setNeedClientAuth

public void setNeedClientAuth(boolean required)
Sets if clients must authenticate themselves on connection.
Parameters:
required - if true, the clients must authenticate themselves.

getNeedClientAuth

public boolean getNeedClientAuth()
Determines if clients must authenticate themselves on connection.
Returns:
true if clients must authenticate themselves.

export

public void export(Properties properties)
Helper to export this to a Properties instance.
Overrides:
export in class SocketRequestInfo
Parameters:
properties - the properties to export to.

equals

public boolean equals(java.lang.Object other)
Checks whether this instance is equal to another.
Overrides:
equals in class SocketRequestInfo
Parameters:
other - the object to compare
Returns:
true if the two instances are equal; otherwise false


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.