Class OslcClient

java.lang.Object
org.eclipse.lyo.client.OslcClient
All Implemented Interfaces:
IOslcClient

public class OslcClient extends Object implements IOslcClient
An OSLC Client that extends the JAX-RS 2.0 REST client with OSLC specific CRUD and discovery capabilities. Client applications would typically provide a ClientBuilder to the constructor to configure the REST client too meet their needs.
  • Constructor Details

    • OslcClient

      public OslcClient()
      A simple OslcClient that provides http access to unprotected resources
    • OslcClient

      public OslcClient(String version)
      Parameters:
      version - OSLC version, see OSLCConstants
    • OslcClient

      public OslcClient(jakarta.ws.rs.client.ClientBuilder clientBuilder)
      An OslcClient that allows client applications to provide a configured (but not built) ClientBuilder typically used for supporting https, and various kinds of authentication.
      Parameters:
      clientBuilder - HTTP client configuration
    • OslcClient

      public OslcClient(jakarta.ws.rs.client.ClientBuilder clientBuilder, String version)
      An OslcClient that allows client applications to provide a configured (but not built) ClientBuilder typically used for supporting https, and various kinds of authentication.
      Parameters:
      clientBuilder - HTTP client configuration
      version - OSLC version, see OSLCConstants
    • OslcClient

      public OslcClient(jakarta.ws.rs.client.ClientBuilder clientBuilder, String version, Set<Class<?>> providers)
      An OslcClient that allows client applications to provide a configured (but not built) ClientBuilder typically used for supporting https, and various kinds of authentication.
      Parameters:
      clientBuilder - HTTP client configuration
      version - OSLC version, see OSLCConstants
      providers - Set of Providers for MessageBodyReader and MessageBodyWriter
  • Method Details