public class DirectConnection extends java.lang.Object implements Transport
If the MMS Relay/Server is located in another subnet, a route to it must be manually added to the operating systems routing table.
Constructor and Description |
---|
DirectConnection() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void open() throws TransportException, java.io.IOException
Transport
open
in interface Transport
TransportException
- if the connection cannot be established.java.io.IOException
- if an I/O error occurs.public void close() throws TransportException, java.io.IOException
Transport
close
in interface Transport
TransportException
- if the connection cannot be closed.java.io.IOException
- if an I/O error occurs.public void init(java.util.Properties props) throws TransportException
Transport
init
in interface Transport
props
- Configuration Properties.TransportException
- if initialisation fails.public boolean isConnected()
Transport
isConnected
in interface Transport
object XP, Inc. © 2000-2013. All rights reserved object XP