Sun Adapter for Batch/FTP

com.stc.connector.batchadapter.webservice
Class SFTPWebService

java.lang.Object
  extended by com.stc.connector.batchadapter.webservice.SFTPWebService

public class SFTPWebService
extends java.lang.Object

jim.fu@sun.com TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates


Constructor Summary
SFTPWebService(com.stc.connector.appconn.common.ApplicationConnectionFactory acf, java.lang.String collabOID, java.lang.String connName, java.lang.String etdClassName)
          constructor for "manual mode" handling;
SFTPWebService(java.lang.Object app)
          Creates a new instance of SFTPWebService
 
Method Summary
 PayloadMessage get(SFTPGetMessage fgmIn)
          Gets a file to the PayloadMessage.
 PayloadMessage GET(SFTPGetMessage fgmIn)
          Gets a file to the PayloadMessage - apply pre and post operations if there is any.
 com.stc.connector.appconn.common.ApplicationConnection getAC()
           
 EmptyMessage put(SFTPPutMessage fpmIn)
          Puts a payload to a remote file, if payload is NULL - the data source is a local file.
 EmptyMessage PUT(SFTPPutMessage fpmIn)
          Puts a payload to a file - apply pre and post if there is any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFTPWebService

public SFTPWebService(java.lang.Object app)
Creates a new instance of SFTPWebService

Parameters:
app - The application associated with this web service.

SFTPWebService

public SFTPWebService(com.stc.connector.appconn.common.ApplicationConnectionFactory acf,
                      java.lang.String collabOID,
                      java.lang.String connName,
                      java.lang.String etdClassName)
constructor for "manual mode" handling;

Parameters:
acf -
collabOID -
connName -
etdClassName -
Method Detail

get

public PayloadMessage get(SFTPGetMessage fgmIn)
                   throws java.lang.Exception
Gets a file to the PayloadMessage.

Parameters:
fgmIn - An SFTPGetMessage.
Returns:
The PayloadMessage.
Throws:
The - exception thrown by the operation.
java.lang.Exception

put

public EmptyMessage put(SFTPPutMessage fpmIn)
                 throws java.lang.Exception
Puts a payload to a remote file, if payload is NULL - the data source is a local file.

Parameters:
fpmIn - The SFTPPutMessage.
Returns:
A dummy message to handle eInsight
Throws:
The - exception thrown by the operation.
java.lang.Exception

GET

public PayloadMessage GET(SFTPGetMessage fgmIn)
                   throws java.lang.Exception
Gets a file to the PayloadMessage - apply pre and post operations if there is any.

Parameters:
fgmIn - An SFTPGetMessage.
Returns:
The PayloadMessage.
Throws:
The - exception thrown by the operation.
java.lang.Exception

PUT

public EmptyMessage PUT(SFTPPutMessage fpmIn)
                 throws java.lang.Exception
Puts a payload to a file - apply pre and post if there is any.

Parameters:
fpmIn - The SFTPPutMessage.
Returns:
A dummy message to handle eInsight
Throws:
The - exception thrown by the operation.
java.lang.Exception

getAC

public com.stc.connector.appconn.common.ApplicationConnection getAC()

Sun Adapter for Batch/FTP