|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eways.batchext.LocalFileClientImpl
public class LocalFileClientImpl
Field Summary | |
---|---|
protected LocalFileETD |
etd
|
protected com.stc.eways.common.eway.standalone.streaming.FileInputStream |
is
|
protected java.io.OutputStream |
os
|
protected byte[] |
payload
|
protected TransferNamesAndCommands |
tnc
|
protected boolean |
transferAllowed
|
Constructor Summary | |
---|---|
LocalFileClientImpl()
|
Method Summary | |
---|---|
void |
allowTransfer()
|
void |
executePostCommandGet(LocalFileTransferNamesAndCommandsGet tncg)
|
void |
executePostCommandPut(LocalFileTransferNamesAndCommandsPut tncp)
|
void |
executePreCommandGet(LocalFileTransferNamesAndCommandsGet tncg)
|
void |
executePreCommandPut(LocalFileTransferNamesAndCommandsPut tncp)
|
void |
get()
Performs an inbound transfer to the Payload field. |
void |
getIfExists()
per QAI 94512 - requested by eXchange team |
com.stc.eways.common.eway.standalone.streaming.InputStreamAdapter |
getInputStreamAdapter()
Gets an InputStreamAdapter which can be used to perform inbound streaming transfers with this LocalFileClient. |
com.stc.eways.common.eway.standalone.streaming.OutputStreamAdapter |
getOutputStreamAdapter()
Gets an OutputStreamAdapter which can be used to perform outbound streaming transfers with this LocalFileClient. |
byte[] |
getPayload()
Gets the content of the Payload field. |
TransferNamesAndCommands |
getResolvedNamesToGet()
Obtains a TransferNamesAndCommands instance, which can be used to get access to the resolved names and commands for the current inbound transfer. |
TransferNamesAndCommands |
getResolvedNamesToPut()
Obtains a TransferNamesAndCommands instance, which can be used to get access to the resolved names and commands for the current outbound transfer. |
boolean |
getResumeReadingInProgress()
Indicates whether there is a 'Resume Reading' operation in progres. |
void |
getTargetDirExists()
Same as get but verify whether target directory is accessible |
void |
initialize(LocalFileETD etd)
|
void |
notifyChanges()
|
void |
put()
Performs an outbound transfer from the Payload field. |
void |
releaseInputStream(boolean success)
|
void |
releaseOutputStream(boolean success)
|
java.io.InputStream |
requestInputStream()
|
java.io.OutputStream |
requestOutputStream()
|
boolean |
reset()
Resets the LocalFileClient, so it can be used in subsequent transfers. |
void |
setPayload(byte[] payload)
Sets the content of the Payload field. |
void |
undoPreCommandGet(LocalFileTransferNamesAndCommandsGet tncg)
|
void |
undoPreCommandPut(LocalFileTransferNamesAndCommandsPut tncp)
|
void |
undoTransferGet(LocalFileTransferNamesAndCommandsGet tncg)
|
void |
undoTransferPut(LocalFileTransferNamesAndCommandsPut tncp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LocalFileETD etd
protected boolean transferAllowed
protected TransferNamesAndCommands tnc
protected byte[] payload
protected com.stc.eways.common.eway.standalone.streaming.FileInputStream is
protected java.io.OutputStream os
Constructor Detail |
---|
public LocalFileClientImpl()
Method Detail |
---|
public void initialize(LocalFileETD etd)
initialize
in interface LocalFileClient
public boolean reset()
LocalFileClient
reset
in interface LocalFileClient
public void allowTransfer()
allowTransfer
in interface LocalFileClient
public TransferNamesAndCommands getResolvedNamesToGet() throws LocalFileException
LocalFileClient
getResolvedNamesToGet
in interface LocalFileClient
LocalFileException
- If anything goes wrong.
LocalFileException.getNestedException() can be used to retrieve the
original exception that caused the failure, if any.public TransferNamesAndCommands getResolvedNamesToPut() throws LocalFileException
LocalFileClient
getResolvedNamesToPut
in interface LocalFileClient
LocalFileException
- If anything goes wrong.
LocalFileException.getNestedException() can be used to retrieve the
original exception that caused the failure, if any.public byte[] getPayload()
LocalFileClient
getPayload
in interface LocalFileClient
public void setPayload(byte[] payload)
LocalFileClient
setPayload
in interface LocalFileClient
payload
- The new Payload content.public com.stc.eways.common.eway.standalone.streaming.InputStreamAdapter getInputStreamAdapter()
LocalFileClient
getInputStreamAdapter
in interface LocalFileClient
public com.stc.eways.common.eway.standalone.streaming.OutputStreamAdapter getOutputStreamAdapter()
LocalFileClient
getOutputStreamAdapter
in interface LocalFileClient
public java.io.InputStream requestInputStream() throws com.stc.eways.common.eway.standalone.streaming.StreamingException
requestInputStream
in interface com.stc.eways.common.eway.standalone.streaming.InputStreamAdapter
com.stc.eways.common.eway.standalone.streaming.StreamingException
public void releaseInputStream(boolean success) throws com.stc.eways.common.eway.standalone.streaming.StreamingException
releaseInputStream
in interface com.stc.eways.common.eway.standalone.streaming.InputStreamAdapter
com.stc.eways.common.eway.standalone.streaming.StreamingException
public java.io.OutputStream requestOutputStream() throws com.stc.eways.common.eway.standalone.streaming.StreamingException
requestOutputStream
in interface com.stc.eways.common.eway.standalone.streaming.OutputStreamAdapter
com.stc.eways.common.eway.standalone.streaming.StreamingException
public void releaseOutputStream(boolean success) throws com.stc.eways.common.eway.standalone.streaming.StreamingException
releaseOutputStream
in interface com.stc.eways.common.eway.standalone.streaming.OutputStreamAdapter
com.stc.eways.common.eway.standalone.streaming.StreamingException
public void get() throws LocalFileException
LocalFileClient
get
in interface LocalFileClient
LocalFileException
- If anything goes wrong.
LocalFileException.getNestedException() can be used to retrieve the
original exception that caused the failure, if any.public void getIfExists() throws LocalFileException
getIfExists
in interface LocalFileClient
LocalFileException
public void getTargetDirExists() throws LocalFileException
LocalFileClient
getTargetDirExists
in interface LocalFileClient
LocalFileException
public void put() throws LocalFileException
LocalFileClient
put
in interface LocalFileClient
LocalFileException
- If anything goes wrong.
LocalFileException.getNestedException() can be used to retrieve the
original exception that caused the failure, if any.public boolean getResumeReadingInProgress()
LocalFileClient
getResumeReadingInProgress
in interface LocalFileClient
public void executePreCommandGet(LocalFileTransferNamesAndCommandsGet tncg) throws LocalFileException, BatchException
executePreCommandGet
in interface LocalFileClient
LocalFileException
BatchException
public void undoPreCommandGet(LocalFileTransferNamesAndCommandsGet tncg) throws LocalFileException, BatchException
undoPreCommandGet
in interface LocalFileClient
LocalFileException
BatchException
public void executePostCommandGet(LocalFileTransferNamesAndCommandsGet tncg) throws LocalFileException, BatchException
executePostCommandGet
in interface LocalFileClient
LocalFileException
BatchException
public void undoTransferGet(LocalFileTransferNamesAndCommandsGet tncg) throws LocalFileException, BatchException
undoTransferGet
in interface LocalFileClient
LocalFileException
BatchException
public void executePreCommandPut(LocalFileTransferNamesAndCommandsPut tncp) throws LocalFileException, BatchException
executePreCommandPut
in interface LocalFileClient
LocalFileException
BatchException
public void undoPreCommandPut(LocalFileTransferNamesAndCommandsPut tncp) throws LocalFileException, BatchException
undoPreCommandPut
in interface LocalFileClient
LocalFileException
BatchException
public void executePostCommandPut(LocalFileTransferNamesAndCommandsPut tncp) throws LocalFileException, BatchException
executePostCommandPut
in interface LocalFileClient
LocalFileException
BatchException
public void undoTransferPut(LocalFileTransferNamesAndCommandsPut tncp) throws LocalFileException, BatchException
undoTransferPut
in interface LocalFileClient
LocalFileException
BatchException
public void notifyChanges()
notifyChanges
in interface ConfigChangeListener
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |