Interface HostedServiceProxy

All Superinterfaces:
InterceptorHandler, RequestResponseClient
All Known Implementing Classes:
HostedServiceProxyImpl

public interface HostedServiceProxy extends RequestResponseClient
Hosted service proxy of a client.
  • Method Details

    • getType

      org.somda.sdc.dpws.model.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 RequestResponseClient instance 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 EventSinkAccess instance.
    • 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.