Class OslcConfig

    • Method Detail

      • getInstance

        public static OslcConfig getInstance()
      • qname

        public static QName qname​(String localPart)
      • getContext

        public static URI getContext​(URI versionedResourceUri)
        Extract the configuration URI specified as oslc_config.context query parameter, if any, from the versioned resource URI.
        Parameters:
        versionedResourceUri - the resource URI with versioning information.
        Returns:
        the configuration URI specified as query parameter, null if none.
        See Also:
        ConfigContext
      • addContext

        public static URI addContext​(URI resourceUri,
                                     URI configurationContext)
        Combine the resource URI and the configuration URI to obtain a versioned resource URI. The configuration URI is set as oslc_config.context query parameter in the returned URI.

        If the specified configuration is null, the resource URI is returned without any oslc_config.context query parameter.

        Parameters:
        resourceUri - the resource URI, which shall not yet have a specified configuration URI.
        configurationContext - the applicable configuration URI, possibly null.
        Returns:
        the URI of the versioned resource, which includes the configuration URI as oslc_config.context query parameter.
        See Also:
        ConfigContext
      • removeContext

        public static URI removeContext​(URI versionedResourceUri)
        Removes the configuration URI from the specified versioned resource URI. This implementation returns a URI based on the specified versioned resource URI and removes the oslc_config.context query parameter, if any.
        Parameters:
        versionedResourceUri - the URI of the versioned resource, which includes a configuration URI using a oslc_config.context query parameter.
        Returns:
        the resource URI, without the configuration URI information.
        See Also:
        ConfigContext