|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MM7Activity
Superinterface of all MM7 activity objects. It provides behaviour common to all activities: metadata and the ability to send an error response.
MM7 activities are generated in two cases:
VASPProvider
or RSProvider
) to send a new request
Responses may only be sent on activities generated due to an incoming request. An attempt to send a response on an activity that is in use for an outgoing request will cause an IllegalStateException to be thrown.
Method Summary | |
---|---|
MM7Provider |
getProvider()
Get the MM7Provider which created this activity. |
java.lang.String |
getTransactionID()
Get the transaction ID string for this activity. |
void |
sendErrorResponse(MM7StatusCode status)
Send an error response to the incoming request this activity is responsible for. |
Method Detail |
---|
MM7Provider getProvider()
java.lang.String getTransactionID()
void sendErrorResponse(MM7StatusCode status) throws ValidationException, java.io.IOException, java.lang.IllegalStateException
status
- the MM7StatusCode to include in the response; must be an error status code.
ValidationException
- if status
is null
or is not an error 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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |