|
IAIK TSP version 2.32 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object demo.tsp.connections.tcpip.TspTcpIpServer
public class TspTcpIpServer
This class implements a TSP TCP/IP server. In this demo version only the
finalMsg structure and errorMsg structure is provided without any polling.
For more details please refer to RFC 3161.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
The logger for this class. |
Constructor Summary | |
---|---|
TspTcpIpServer(java.lang.String propertyFile)
Creates a new TspTcpIpServer . |
Method Summary | |
---|---|
TspServerConfiguration |
getConfiguration()
Returns the used TspServerConfiguration . |
boolean |
isRunning()
Checks if the server is running. |
static void |
main(java.lang.String[] args)
Main class for a TspTcpIpServer . |
void |
receiveAndSendData()
Waits for a connection from a client. |
void |
startServer()
Starts the TSP TCP/IP server on the specified port. |
void |
stopServer()
Stops the TSP TCP/IP server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public TspTcpIpServer(java.lang.String propertyFile) throws java.io.IOException, TspServerConfigurationException
TspTcpIpServer
.
propertyFile
- The URL
of the property file. If this parameter is
null
the default location (ServerConfiguration.properties) will be used.
java.io.IOException
- Thrown if the specified property is not in the classpath.
TspServerConfigurationException
- Thrown if the PKCS#12 file could not be found or decrypted.Method Detail |
---|
public void startServer()
public void stopServer()
public boolean isRunning()
true
if the server is running, false
otherwisepublic void receiveAndSendData() throws java.io.IOException
TspTcpIpServerThread
will be started.
java.io.IOException
- Thrown if any connection problem occurs.public TspServerConfiguration getConfiguration()
TspServerConfiguration
.
public static void main(java.lang.String[] args)
TspTcpIpServer
.
args
- The first parameter is the property file to be used. If there are no arguments the default
property file will be used.
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |