Package org.somda.sdc.dpws.service
Interface HostedServiceProxy
- All Superinterfaces:
InterceptorHandler,RequestResponseClient
- All Known Implementing Classes:
HostedServiceProxyImpl
Hosted service proxy of a client.
-
Method Summary
Modifier and TypeMethodDescriptionGets the physical address that is actively being used to send requests.Gets the event sink that can be used to subscribe and manage subscriptions of the hosted service.Gets the request-response client used to send request messages and receive their response.getType()Gets the hosted service metadata requestable via WS-TransferGet.Methods inherited from interface org.somda.sdc.dpws.soap.interception.InterceptorHandler
registerMethods inherited from interface org.somda.sdc.dpws.soap.RequestResponseClient
sendRequestResponse
-
Method Details
-
getType
HostedServiceType getType()Gets the hosted service metadata requestable via WS-TransferGet.- Returns:
- a copy of the hosted service metadata received from the network.
-
getRequestResponseClient
RequestResponseClient getRequestResponseClient()Gets the request-response client used to send request messages and receive their response.Hint: the HostingServiceProxy itself implements
RequestResponseClient, which is the same as using the return value of this function.- Returns:
- the
RequestResponseClientinstance capable of requesting this hosted service.
-
getEventSinkAccess
EventSinkAccess getEventSinkAccess()Gets the event sink that can be used to subscribe and manage subscriptions of the hosted service.Attention: the event sink only works if the underlying hosted service acts as an event source. It is up to the user check the availability in advance, otherwise calls will end up in SOAP faults.
- Returns:
- the
EventSinkAccessinstance.
-
getActiveEprAddress
String getActiveEprAddress()Gets the physical address that is actively being used to send requests.A hosted service can have different physical addresses in order to be accessible. The one that is returned with this function is the one that was used to initially resolve metadata (GetMetadata request).
- Returns:
- the currently active EPR address.
-