com.opencloud.slee.resources.mm7
Interface DeliverActivity

All Superinterfaces:
MM7Activity

public interface DeliverActivity
extends MM7Activity

Activity representing a MM7 transaction that involves a Deliver Request/Response pair.


Method Summary
 void sendResponse(MM7StatusCode result)
          Send a Deliver Response to the incoming request this activity is responsible for.
 void sendResponse(MM7StatusCode result, java.lang.String serviceCode)
          Send a Deliver Response to the incoming request this activity is responsible for.
 
Methods inherited from interface com.opencloud.slee.resources.mm7.MM7Activity
getProvider, getTransactionID, sendErrorResponse
 

Method Detail

sendResponse

void sendResponse(MM7StatusCode result)
                  throws ValidationException,
                         java.io.IOException,
                         java.lang.IllegalStateException
Send a Deliver Response to the incoming request this activity is responsible for. To send an error response, use MM7Activity#sendErrorResponse.

Parameters:
result - the MM7StatusCode to include in the response; must be a success status code.
Throws:
ValidationException - if result is null or is not a success status code
java.io.IOException - if the response could not be generated due to an internal error
java.lang.IllegalStateException - if this activity is not handling a request, or a response has already been sent.

sendResponse

void sendResponse(MM7StatusCode result,
                  java.lang.String serviceCode)
                  throws ValidationException,
                         java.io.IOException,
                         java.lang.IllegalStateException
Send a Deliver Response to the incoming request this activity is responsible for. To send an error response, use MM7Activity#sendErrorResponse.

Parameters:
result - the MM7StatusCode to include in the response; must be a success status code.
serviceCode - the Service Code to include in the response.
Throws:
ValidationException - if result is null or is not a success status code
java.io.IOException - if the response could not be generated due to an internal error
java.lang.IllegalStateException - if this activity is not handling a request, or a response has already been sent.