Interface OslcClient


  • public interface OslcClient

    An HTTP client that allows executing requests on OSLC resources.

    An OslcClient is not thread-safe; requests shall not be executed concurrently. Use OslcClients.concurrent(factory) for concurrent requests executions.

    This interface is not intended to be implemented by clients.

    See Also:
    OslcClientFactory.create(), OslcClients.concurrent(OslcClientFactory)
    • Method Detail

      • getFactory

        OslcClientFactory getFactory()
        Returns the factory that created this OslcClient instance. The factory shall be used to create another client instance, for example to execute concurrent requests.
        Returns:
        the factory that created this OslcClient instance.
        See Also:
        OslcClientFactory.create()
      • resource

        OslcResource resource​(URI uri)
        Returns an OslcResource on which a request can then be executed.
        Parameters:
        uri - the URI of the resource
        Returns:
        the created resource.
      • resource

        OslcResource resource​(String uri)
        Returns an OslcResource on which a request can then be executed.
        Parameters:
        uri - the URI of the resource
        Returns:
        the created resource.