Interface RemoteResource

    • Method Detail

      • getCredential

        Credential getCredential()
        Gets the Credential that is set on the network resource.
        Returns:
        the Credential, or null if there is none
        Since:
        100.0.0
      • setCredential

        void setCredential​(Credential credential)
        Sets a Credential to be used by the network resource in the event of an authentication challenge. The default credential is null.
        Parameters:
        credential - the Credential to be used for authentication
        Since:
        100.0.0
      • getRequestConfiguration

        RequestConfiguration getRequestConfiguration()
        Gets the RequestConfiguration used to modify the parameters of network requests made by this RemoteResource.
        Returns:
        the RequestConfiguration used to modify network requests
        Since:
        100.0.0
      • setRequestConfiguration

        void setRequestConfiguration​(RequestConfiguration requestConfiguration)
        Sets the RequestConfiguration used to modify the parameters of network requests made by this RemoteResource. If not set, the global RequestConfiguration will be used (see RequestConfiguration.getGlobalRequestConfiguration()).
        Parameters:
        requestConfiguration - the RequestConfiguration used to modify network requests
        Since:
        100.0.0
      • getUri

        String getUri()
        Gets the URI of this RemoteResource. Typically this is the URI used to instantiate the object.
        Returns:
        the URI of this RemoteResource
        Since:
        100.0.0