OSID Logo
OSID Specifications
transport package
Version 3.1.0
Interfaceosid.transport.OutboundMessageSession
Implementsosid.OsidSession
Used Byosid.transport.TransportManager
osid.transport.TransportProxyManager
Description

This session provides access to a request/response protocol provider. The data and format of the requests and responses are identified through their respective Types. While this session is used for structured conversations, it doesn't preclude the use of byte streams as part of a Request or Response.

A Request is retrieved via getRequest() and data is supplied to its corresponding record. The Request is then sent using sendRequest() along with an interface to be called when the Response arrives. The FSM of the protocol is indicated through the available Request Types that may change from one transaction to another.

While multiple requests may be submitted before receiving a response, the requests may or may not be queued.

MethodgetEndpointId
Description

Gets the Endpoint Id associated with this session.

Returnosid.id.Id the Endpoint Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetEndpoint
Description

Gets the Endpoint associated with this session.

Returnosid.transport.Endpoint the Endpoint associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRequest
Description

Gets a Request for use with sendRequest(). This is not a receive call.

Returnosid.transport.Request a request
Compliancemandatory This method must be implemented.
MethodmakeRequest
Description

Sends a request to the remote transport endpoint and waits for a response.

Parametersosid.transport.Requestrequest the request
osid.transport.Responseresponse callback for the response
ErrorsNULL_ARGUMENT request or receiver is null
OPERATION_FAILED unable to complete request
UNSUPPORTED request is not supported
Compliancemandatory This method must be implemented.
MethodsendRequest
Description

Sends data to the remote transport endpoint and sends the response to the callback.

Parametersosid.transport.Requestrequest the request
osid.transport.MessageReceivercallback callback for the response
ErrorsNULL_ARGUMENT request or callback is null
OPERATION_FAILED unable to complete request
UNSUPPORTED request is not supported
Compliancemandatory This method must be implemented.