public final class OftpServer
extends java.lang.Object
implements java.lang.Runnable
The OFTP Server listens for a connection attempt, sends the SSRM, and then negotiates the SSID with the client. It then waits for files to be sent by the client before (optionally) attempting to send any files that are waiting to go.
The minimal interface that must be implemented to be able to receive
messages is com.adaptris.protocol.oftp.MessageListener.
ExceptionListener,
UserManager,
MessageListener,
ResponseListener| Constructor and Description |
|---|
OftpServer() |
OftpServer(java.util.Properties p)
Constructor using a set of Properties.
|
OftpServer(java.util.Properties p,
Transport t)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OftpConfig |
getConfig()
Get the configuration created by the constructor.
|
Transport |
getTransport()
Get the transport that forms the connectivity for this server.
|
void |
run() |
void |
setTransport(Transport t)
set the transport that forms the connectivity.
|
void |
stop()
Stop the listener.
|
java.lang.String |
toString() |
public OftpServer(java.util.Properties p)
p - the properties the form the configuration.OftpConstantspublic OftpServer(java.util.Properties p,
Transport t)
p - the properties with which to initialise this client.t - the transport type.OftpConstantspublic OftpServer()
Object.Object()public Transport getTransport()
public void setTransport(Transport t)
t - the transportpublic OftpConfig getConfig()
The OftpConfig object is used to control the behaviour of the actual protocol handler instance when it is negotiating a session
ExceptionListener,
MessageListener,
ResponseListener,
UserManager,
OftpConfigpublic void stop()
Essentially, this sets an internal flag to be false which
will cause the run() to stop upon completion of the next
listen cycle.
The run() will not terminate until all child threads
started by the server have finished.
public void run()
run in interface java.lang.RunnableRunnable.run()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright Adaptris