Interface TransportProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidProfile, OsidProxyManager, OsidProxyManager, 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 TypeMethodDescriptiongetEndpointLookupSession(Proxy proxy) Gets the endpoint lookup service.getInboundMessageSession(MessageReceiver messageReceiver, Proxy proxy) Gets a service for inbound message transport.getInboundMessageSessionForEndpoint(MessageReceiver messageReceiver, Id endpointId, Proxy proxy) Gets a service for inbound message transport using a specified Endpoint.getInboundStreamSession(StreamReceiver streamReceiver, Proxy proxy) Gets a service for inbound stream transport.getInboundStreamSessionForEndpoint(StreamReceiver streamReceiver, Id endpointId, Proxy proxy) Gets a service for inbound stream transport using a specifiedEndpoint.getOutboundMessageSession(Proxy proxy) Gets a service for outbound message transport.getOutboundMessageSessionForEndpoint(Id endpointId, Proxy proxy) Gets a service for outbound message transport using a specified Endpoint.getOutboundStreamSession(Proxy proxy) Gets a service for outbound stream transport.getOutboundStreamSessionForEndpoint(Id endpointId, Proxy proxy) Gets a service for outbound stream transport using a specifiedEndpoint.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 OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId, Proxy proxy) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime, Proxy proxy) Rolls back this service to a point in time.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.- Parameters:
proxy- a proxy- Returns:
- an
OutboundStreamSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsOutboundStream()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOutboundStream()} is {@code true} .
-
getOutboundStreamSessionForEndpoint
OutboundStreamSession getOutboundStreamSessionForEndpoint(Id endpointId, Proxy proxy) throws NotFoundException, OperationFailedException Gets a service for outbound stream transport using a specifiedEndpoint.- Parameters:
endpointId- a transport endpointproxy- a proxy- Returns:
- an
OutboundStreamSession - Throws:
NotFoundException-endpointIdorproxyis 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, Proxy proxy) throws OperationFailedException Gets a service for inbound stream transport.- Parameters:
streamReceiver- a stream receiverproxy- a proxy- Returns:
- an
InboundStreamSession - Throws:
NullArgumentException-streamReceiverorproxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets a service for inbound stream transport using a specifiedEndpoint.- Parameters:
streamReceiver- a stream receiverendpointId- a transport endpointproxy- a proxy- Returns:
- an
InboundStreamSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-streamReceiver, endpointIdorporxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
- an
OutboundMessageSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets a service for outbound message transport using a specified Endpoint.- Parameters:
endpointId- a transport endpointproxy- a proxy- Returns:
- an
OutboundMessageSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-endpointIdorproxyisnullOperationFailedException-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, Proxy proxy) throws OperationFailedException Gets a service for inbound message transport.- Parameters:
messageReceiver- a message receiverproxy- a proxy- Returns:
- an
InboundMessageSession - Throws:
NullArgumentException-messageReceiverorproxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets a service for inbound message transport using a specified Endpoint.- Parameters:
messageReceiver- a message receiverendpointId- a transport endpointproxy- a proxy- Returns:
- an
InboundMessageSession - Throws:
NotFoundException-endpointIdis not foundNullArgumentException-messageReceiver, endpointIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
- an
EndpointLookupSesson - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsInbound()isfalse- Compliance:
optional- This method must be implemented if {@code supportsInbound()} is {@code true} .
-