com.objectxp.mms.transport
Interface Transport

All Known Implementing Classes:
DirectConnection, PPPDialup

public interface Transport

The Transport interface is used by the MMSService to prepare a connection to the MMSC.

After calling the 'open()' method of this interface, the upper layer may establish a connection to the SMSC.


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.
 

Method Detail

open

void open()
          throws TransportException,
                 java.io.IOException
Prepare connectivity to the MMSC.

Throws:
java.io.IOException - if an I/O error occurs.
TransportException - if the connection cannot be established.

close

void close()
           throws TransportException,
                  java.io.IOException
Closes the connection to the MMSC.

Throws:
java.io.IOException - if an I/O error occurs.
TransportException - if the connection cannot be closed.

init

void init(java.util.Properties props)
          throws TransportException
Initialize the Transport-Layer.

Parameters:
props - Configuration Properties.
Throws:
TransportException - if initialisation fails.

isConnected

boolean isConnected()
Determine if the connection to the MMSC is currently established.

Returns:
true if transport layer is connected, false otherwise.


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