com.objectxp.mms.transport
Class DirectConnection

java.lang.Object
  extended bycom.objectxp.mms.transport.DirectConnection
All Implemented Interfaces:
Transport

public class DirectConnection
extends java.lang.Object
implements Transport

This class may be used as a transport implementation if the MMS Relay/Server is directly reachable using TCP/IP. Since direct connections require no action from the Transport implementation, all methods in this class are empty.

If the MMS Relay/Server is located in another subnet, a route to it must be manually added to the operating systems routing table.

Since:
jSMS 2.0

Constructor Summary
DirectConnection()
           
 
Method Summary
 void close()
          Closes the connection to the MMSC.
 void init(java.util.Properties props)
          Initialize the Transport-Layer.
 boolean isConnected()
          Determine if the connection to the MMSC is currently established.
 void open()
          Prepare connectivity to the MMSC.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectConnection

public DirectConnection()
Method Detail

open

public void open()
          throws TransportException,
                 java.io.IOException
Description copied from interface: Transport
Prepare connectivity to the MMSC.

Specified by:
open in interface Transport
Throws:
java.io.IOException - if an I/O error occurs.
TransportException - if the connection cannot be established.

close

public void close()
           throws TransportException,
                  java.io.IOException
Description copied from interface: Transport
Closes the connection to the MMSC.

Specified by:
close in interface Transport
Throws:
TransportException - if the connection cannot be closed.
java.io.IOException - if an I/O error occurs.

init

public void init(java.util.Properties props)
          throws TransportException
Description copied from interface: Transport
Initialize the Transport-Layer.

Specified by:
init in interface Transport
Parameters:
props - Configuration Properties.
Throws:
TransportException - if initialisation fails.

isConnected

public boolean isConnected()
Description copied from interface: Transport
Determine if the connection to the MMSC is currently established.

Specified by:
isConnected in interface Transport
Returns:
true if transport layer is connected, false otherwise.


object XP, Inc. © 2000-2007. All rights reserved object XP