com.datapower.xml.xslt.xa
Interface xaProgressListener


public interface xaProgressListener

The xaProgressListener interface is implemented by objects that monitor the progress of the transform; the methods in this interface are invoked by code that performs the transform.


Method Summary
 boolean endFile(java.lang.String filename)
          Notifies that sending the current file is finished
 boolean resultReceived()
          Notifies that xml output has been received
 boolean resumeFile(java.lang.String filename)
          Notifies that a previous file is resumed
 boolean rxBeat(int bytesRx)
          Notifies that a given number of bytes have been received.
 boolean startFile(java.lang.String filename)
          Notifies that a new file is about to be transmitted
 boolean txBeat(int bytesTx)
          Notifies that a given number of bytes have been send.
 boolean waitForResult()
          Notifies that xml input has been consumed, and the client is waiting for xml output to start
 

Method Detail

startFile

public boolean startFile(java.lang.String filename)
Notifies that a new file is about to be transmitted

Parameters:
filename - - name of file
Returns:
boolean false to abort transaction, true else

resumeFile

public boolean resumeFile(java.lang.String filename)
Notifies that a previous file is resumed

Parameters:
filename - - name of file
Returns:
boolean false to abort transaction, true else

endFile

public boolean endFile(java.lang.String filename)
Notifies that sending the current file is finished

Parameters:
filename - - name of file
Returns:
boolean false to abort transaction, true else

waitForResult

public boolean waitForResult()
Notifies that xml input has been consumed, and the client is waiting for xml output to start

Returns:
boolean false to abort transaction, true else

resultReceived

public boolean resultReceived()
Notifies that xml output has been received

Returns:
boolean false to abort transaction, true else

txBeat

public boolean txBeat(int bytesTx)
Notifies that a given number of bytes have been send. Note that this amount represents an installment, as opposed to a cumulative amount of work done to date.

Returns:
boolean false to abort transaction, true else

rxBeat

public boolean rxBeat(int bytesRx)
Notifies that a given number of bytes have been received. Note that this amount represents an installment, as opposed to a cumulative amount of work done to date.

Returns:
boolean false to abort transaction, true else