Interface TransportManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, Sourceable, TransportProfile
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets the endpoint lookup service.getInboundMessageSession(MessageReceiver messageReceiver) Gets a service for inbound message transport.getInboundMessageSessionForEndpoint(MessageReceiver messageReceiver, Id endpointId) Gets a service for inbound message transport using a specified Endpoint.getInboundStreamSession(StreamReceiver streamReceiver) Gets a service for inbound stream transport.getInboundStreamSessionForEndpoint(StreamReceiver streamReceiver, Id endpointId) Gets a service for inbound stream transport using a specifiedEndpoint.Gets a service for outbound message transport.getOutboundMessageSessionForEndpoint(Id endpointId) Gets a service for outbound message transport using a specified Endpoint.Gets a service for outbound stream transport.getOutboundStreamSessionForEndpoint(Id endpointId) Gets a service for outbound stream transport using a specifiedEndpoint.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.Methods inherited from interface TransportProfile
getEndpointRecordTypes, getRequestRecordTypes, getResponseRecordTypes, supportsEndpointLookup, supportsEndpointRecordType, supportsInboundMessage, supportsInboundStream, supportsOutboundMessage, supportsOutboundStream, supportsRequestRecordType, supportsResponseRecordType, supportsVisibleFederationModifier and TypeMethodDescriptionGets a list of supported endpoint record types.Gets a list of supported request record types.Gets a list of supported response record types.booleanTests if endpoint lookup is supported.booleansupportsEndpointRecordType(Type endpointRecordType) Tests if an endpoint record type is supported.booleanTests if inbound message transport is supported.booleanTests if inbound stream transport is supported.booleanTests if outbound message transport is supported.booleanTests if outbound stream transport is supported.booleansupportsRequestRecordType(Type requestRecordType) Tests if a request record type is supported.booleansupportsResponseRecordType(Type responseRecordType) Tests if a response record type is supported.booleanTests if any transport endpoint federation is exposed.
-
Method Details
-
getOutboundStreamSession
Gets a service for outbound stream transport.- Returns:
- an
OutboundStreamSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsOutboundStream()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOutboundStream()} is {@code true} .
-
getOutboundStreamSessionForEndpoint
OutboundStreamSession getOutboundStreamSessionForEndpoint(Id endpointId) throws NotFoundException, OperationFailedException Gets a service for outbound stream transport using a specifiedEndpoint.- Parameters:
endpointId- a transport endpoint- Returns:
- an
OutboundStreamSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-endpointIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsOutboundStream()orsupportsVisibleFederationI()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOutboundStream()} and {@code supportsVisibleFederation()} are {@code true} .
-
getInboundStreamSession
InboundStreamSession getInboundStreamSession(StreamReceiver streamReceiver) throws OperationFailedException Gets a service for inbound stream transport.- Parameters:
streamReceiver- a stream receiver- Returns:
- an
InboundStreamSession - Throws:
NullArgumentException-streamReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsInboundStream()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInboundStream()} is {@code true} .
-
getInboundStreamSessionForEndpoint
InboundStreamSession getInboundStreamSessionForEndpoint(StreamReceiver streamReceiver, Id endpointId) throws NotFoundException, OperationFailedException Gets a service for inbound stream transport using a specifiedEndpoint.- Parameters:
streamReceiver- a stream receiverendpointId- a transport endpoint- Returns:
- an
InboundStreamSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-streamReceiverorendpointIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsInboundStream()orsupportsVisibleFederationI()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInboundStream()} and {@code supportsVisibleFederation()} are {@code true} .
-
getOutboundMessageSession
Gets a service for outbound message transport.- Returns:
- an
OutboundMessageSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsOutboundMessage() is false- Compliance:
optional- This method must be implemented if {@code supportsOutboundMessage()} is {@code true} .
-
getOutboundMessageSessionForEndpoint
OutboundMessageSession getOutboundMessageSessionForEndpoint(Id endpointId) throws NotFoundException, OperationFailedException Gets a service for outbound message transport using a specified Endpoint.- Parameters:
endpointId- a transport endpoint- Returns:
- an
OutboundMessageSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-endpointIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsOutboundMessage() or supportsVisibleFederationI() is false- Compliance:
optional- This method must be implemented if {@code supportsOutboundMessage()} and {@code supportsVisibleFederation()} are {@code true} .
-
getInboundMessageSession
InboundMessageSession getInboundMessageSession(MessageReceiver messageReceiver) throws OperationFailedException Gets a service for inbound message transport.- Parameters:
messageReceiver- a message receiver- Returns:
- an
InboundMessageSession - Throws:
NullArgumentException-messageReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsInboundMessage() is false- Compliance:
optional- This method must be implemented if {@code supportsInboundMessage()} is {@code true} .
-
getInboundMessageSessionForEndpoint
InboundMessageSession getInboundMessageSessionForEndpoint(MessageReceiver messageReceiver, Id endpointId) throws NotFoundException, OperationFailedException Gets a service for inbound message transport using a specified Endpoint.- Parameters:
messageReceiver- a message receiverendpointId- a transport endpoint- Returns:
- an
InboundMessageSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-messageReceiverorendpointIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsInboundMessage() or supportsVisibleFederationI() is false- Compliance:
optional- This method must be implemented if {@code supportsInboundMessage()} and {@code supportsVisibleFederation()} are true.
-
getEndpointLookupSession
Gets the endpoint lookup service.- Returns:
- an
EndpointLookupSesson - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsInbound()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInbound()} is {@code true} .
-