OSID Logo
OSID Specifications
transport package
Version 3.0.0
Release Candidate Preview
Interfaceosid.transport.TransportProxyManager
Implementsosid.OsidProxyManager
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.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.transport.OutboundStreamSessionan OutboundStreamSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxya proxy
Returnosid.transport.OutboundStreamSessionan OutboundStreamSession
ErrorsNOT_FOUND endpointId or proxy 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
osid.proxy.Proxyproxya proxy
Returnosid.transport.InboundStreamSessionan InboundStreamSession
ErrorsNULL_ARGUMENT streamReceiver or proxy 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
osid.proxy.Proxyproxya proxy
Returnosid.transport.InboundStreamSessionan InboundStreamSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT streamReceiver, endpointId or porxy 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.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.transport.OutboundMessageSessionan OutboundMessageSession
ErrorsNULL_ARGUMENT proxy is null
OPERATION_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
osid.proxy.Proxyproxya proxy
Returnosid.transport.OutboundMessageSessionan OutboundMessageSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT endpointId or proxy 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
osid.proxy.Proxyproxya proxy
Returnosid.transport.InboundMessageSessionan InboundMessageSession
ErrorsNULL_ARGUMENT messageReceiver or proxy 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
osid.proxy.Proxyproxya proxy
Returnosid.transport.InboundMessageSessionan InboundMessageSession
ErrorsNOT_FOUND endpointId is not found
NULL_ARGUMENT messageReceiver, endpointId or proxy 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.

Parametersosid.proxy.Proxyproxya proxy
Returnosid.transport.EndpointLookupSessionan EndpointLookupSesson
ErrorsNULL_ARGUMENT proxy is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsInbound() is false
ComplianceoptionalThis method must be implemented if supportsInbound() is true.