OSID Logo
OSID Specifications
communication package
Version 3.1.0
Interfaceosid.communication.CommunicationSession
Implementsosid.OsidSession
Used Byosid.communication.CommunicationManager
osid.communication.CommunicationProxyManager
Description

This session defines methods to process communications. Notifications are cancelled when this session is closed.

MethodregisterForCommuniques
Description

Register for notifications of new communiques. CommunicationReceiver.newCommunique() is invoked when a new Communique is sent.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
Methodacknowledge
Description

Sends a nonce response indicating that operations should continue or abort.

Parametersosid.id.IdcommuniqueId the Id of a communique
ErrorsILLEGAL_STATE Communique.respondViaOption() or Communique.respondViaForm() is true, or a response was already supplied
INVALID_ARGUMENT communiqueId not valid
NULL_ARGUMENT communiqueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodrespondViaOption
Description

Responds to a communique requiring a response option.

Parametersosid.id.IdresponseOptionId the Id of a response option
ErrorsILLEGAL_STATE Communique.respondViaOption() is false or a response was already supplied
INVALID_ARGUMENT responseOptionId not valid
NULL_ARGUMENT responseOptionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResponseForm
Description

Gets the response form for submitting form-based responses.

Parametersosid.id.IdcommuniqueId the Id of a communique
Returnosid.communication.ResponseForm a response form
ErrorsILLEGAL_STATE Communique.respondViaForm() is false
INVALID_ARGUMENT communiqueId not valid
NULL_ARGUMENT communiqueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodrespondViaForm
Description

Responds to a communique requiring form input.

Parametersosid.communication.ResponseFormresponseForm a response form
ErrorsILLEGAL_STATE responseForm already used in a response transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT responseForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED responseForm did not originate from getResponseForm()
Compliancemandatory This method must be implemented.