OSID Logo
OSID Specifications
transport package
Version 3.0.0
Release Candidate Preview
Interfaceosid.transport.TransportManager
Implementsosid.OsidManager
osid.transport.TransportProfile
Description

This manager provides access to the sessions defined in this service. The outbound sessions are used to connect to a remote endpoint and the inbound sessions are used to receive incoming connections.

The two flavors of transport are stream and message oriented. Messages offer more structured requests and responses although their structure may include embedded streams.

MethodgetOutboundStreamSession
Description

Gets a service for outbound stream transport.

Returnosid.transport.OutboundStreamSessionan OutboundStreamSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsOutboundStream() is false
ComplianceoptionalThis method must be implemented if supportsOutboundStream() is true.
MethodgetOutboundStreamSessionForEndpoint
Description

Gets a service for outbound stream transport using a specified Endpoint.

Parametersosid.id.IdendpointIda transport endpoint
Returnosid.transport.OutboundStreamSessionan OutboundStreamSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsOutboundStream() or supportsVisibleFederationI() is false
ComplianceoptionalThis method must be implemented if supportsOutboundStream() and supportsVisibleFederation() are true.
MethodgetInboundStreamSession
Description

Gets a service for inbound stream transport.

Parametersosid.transport.StreamReceiverstreamReceivera stream receiver
Returnosid.transport.InboundStreamSessionan InboundStreamSession
ErrorsNULL_ARGUMENT streamReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsInboundStream() is false
ComplianceoptionalThis method must be implemented if supportsInboundStream() is true.
MethodgetInboundStreamSessionForEndpoint
Description

Gets a service for inbound stream transport using a specified Endpoint.

Parametersosid.transport.StreamReceiverstreamReceivera stream receiver
osid.id.IdendpointIda transport endpoint
Returnosid.transport.InboundStreamSessionan InboundStreamSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT streamReceiver or endpointId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsInboundStream() or supportsVisibleFederationI() is false
ComplianceoptionalThis method must be implemented if supportsInboundStream() and supportsVisibleFederation() are true.
MethodgetOutboundMessageSession
Description

Gets a service for outbound message transport.

Returnosid.transport.OutboundMessageSessionan OutboundMessageSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsOutboundMessage() is false
ComplianceoptionalThis method must be implemented if supportsOutboundMessage() is true.
MethodgetOutboundMessageSessionForEndpoint
Description

Gets a service for outbound message transport using a specified Endpoint.

Parametersosid.id.IdendpointIda transport endpoint
Returnosid.transport.OutboundMessageSessionan OutboundMessageSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsOutboundMessage() or supportsVisibleFederationI() is false
ComplianceoptionalThis method must be implemented if supportsOutboundMessage() and supportsVisibleFederation() are true.
MethodgetInboundMessageSession
Description

Gets a service for inbound message transport.

Parametersosid.transport.MessageReceivermessageReceivera message receiver
Returnosid.transport.InboundMessageSessionan InboundMessageSession
ErrorsNULL_ARGUMENT messageReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsInboundMessage() is false
ComplianceoptionalThis method must be implemented if supportsInboundMessage() is true.
MethodgetInboundMessageSessionForEndpoint
Description

Gets a service for inbound message transport using a specified Endpoint.

Parametersosid.transport.MessageReceivermessageReceivera message receiver
osid.id.IdendpointIda transport endpoint
Returnosid.transport.InboundMessageSessionan InboundMessageSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT messageReceiver or endpointId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsInboundMessage() or supportsVisibleFederationI() is false
ComplianceoptionalThis method must be implemented if supportsInboundMessage() and supportsVisibleFederation() are true.
MethodgetEndpointLookupSession
Description

Gets the endpoint lookup service.

Returnosid.transport.EndpointLookupSessionan EndpointLookupSesson
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsInbound() is false
ComplianceoptionalThis method must be implemented if supportsInbound() is true.