Interface ServiceContext<S>

    • Method Detail

      • getApi

        Class<S> getApi()
        Returns:
        the Class reflecting the API of the externally provided Service. E.g. a JAR-RS annotated interface. For flexibility and being not invasive the generic type is not bound to Service (S extends Service).
      • getUrl

        String getUrl()
        Returns:
        the URL (or URI) of the remote service.
      • getHeader

        String getHeader​(String name)
        Parameters:
        name - the name (key) of the header to get.
        Returns:
        the value of the requested header or null if undefined.
      • getServiceDescription

        default String getServiceDescription​(String operation)
        Parameters:
        operation - the invoked service operation (Java method called on API or URL path detail called via REST).
        Returns:
        a String describing the invoked Service with available details as provided.
      • getServiceDescription

        default String getServiceDescription​(String operation,
                                             String url)
        Parameters:
        operation - the invoked service operation (Java method called on API or URL path detail called via REST).
        url - the URL of the invoked service.
        Returns:
        a String describing the invoked Service with available details as provided.