org.exolab.jms.config
Class TcpConfigurationType

java.lang.Object
  extended by org.exolab.jms.config.TcpConfigurationType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TcpConfiguration, TcpsConfiguration

public class TcpConfigurationType
extends java.lang.Object
implements java.io.Serializable

This type defines items specific to TCP and TCPS connectors.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
TcpConfigurationType()
           
 
Method Summary
 void deleteJndiPort()
          Method deleteJndiPort
 void deletePort()
          Method deletePort
 java.lang.String getInternalHost()
          Returns the value of field 'internalHost'.
 int getJndiPort()
          Returns the value of field 'jndiPort'.
 int getPort()
          Returns the value of field 'port'.
 boolean hasJndiPort()
          Method hasJndiPort
 boolean hasPort()
          Method hasPort
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setInternalHost(java.lang.String internalHost)
          Sets the value of field 'internalHost'.
 void setJndiPort(int jndiPort)
          Sets the value of field 'jndiPort'.
 void setPort(int port)
          Sets the value of field 'port'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpConfigurationType

public TcpConfigurationType()
Method Detail

deleteJndiPort

public void deleteJndiPort()
Method deleteJndiPort


deletePort

public void deletePort()
Method deletePort


getInternalHost

public java.lang.String getInternalHost()
Returns the value of field 'internalHost'. The field 'internalHost' has the following description: This is only applicable when the server is behind a NAT firewall. This becomes the internal address the server is known by and the host address in ServerConfiguration is the external address. Clients will attempt to connect to ServerConfiguration/host first. If that fails, they will try to connect to internalHost

Returns:
String

getJndiPort

public int getJndiPort()
Returns the value of field 'jndiPort'. The field 'jndiPort' has the following description: The JNDI port, if an embedded JNDI provider is being used.

Returns:
int

getPort

public int getPort()
Returns the value of field 'port'. The field 'port' has the following description: The port number that the server runs on.

Returns:
int

hasJndiPort

public boolean hasJndiPort()
Method hasJndiPort

Returns:
boolean

hasPort

public boolean hasPort()
Method hasPort

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setInternalHost

public void setInternalHost(java.lang.String internalHost)
Sets the value of field 'internalHost'. The field 'internalHost' has the following description: This is only applicable when the server is behind a NAT firewall. This becomes the internal address the server is known by and the host address in ServerConfiguration is the external address. Clients will attempt to connect to ServerConfiguration/host first. If that fails, they will try to connect to internalHost

Parameters:
internalHost - the value of field 'internalHost'.

setJndiPort

public void setJndiPort(int jndiPort)
Sets the value of field 'jndiPort'. The field 'jndiPort' has the following description: The JNDI port, if an embedded JNDI provider is being used.

Parameters:
jndiPort - the value of field 'jndiPort'.

setPort

public void setPort(int port)
Sets the value of field 'port'. The field 'port' has the following description: The port number that the server runs on.

Parameters:
port - the value of field 'port'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


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