PermitRedownloadServiceSender

public abstract class PermitRedownloadServiceSender extends SOAPSender

Constructors

PermitRedownloadServiceSender

public PermitRedownloadServiceSender(FileLogger l, Data m)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • m – The message properties including how many message need to be sent and some performance parameter.

Methods

getElapsedTime

public long getElapsedTime()

Get how long it tasks for the sender to do it’s tasks.

Returns:The times for the task from start to end in milleseconds.

getEndTime

public long getEndTime()
Returns:Return the end time of the sender process.

getNSURI

protected abstract String getNSURI()

getResponseElementText

public String getResponseElementText(String tagname, String nsURI, int whichOne)

This method should only be called inside onResponse(). because the response object will be deleted upon each ws call.

Parameters:
  • tagname – The tag name of element to be retrieved.
  • nsURI – The namespace URI.
  • whichOne – The nth child element to be returned.
Returns:

The element text in the tagname specified.

getStartTime

public long getStartTime()
Returns:Return the start time of the sending process.

initializeMessage

public void initializeMessage()

Initialize Sender and Construct Message Request

onEnd

public void onEnd()

[@EVENT] This method is invoked when the sending execution is ended.

onError

public void onError(Throwable t)

[@EVENT] Log all known exceptions and stack trace.

Parameters:
  • t – The exception encountered.

onResponse

public void onResponse()

Record the message id.

onStart

public void onStart()

[@EVENT] This method is invoked when the sender begins to execute the run method.