Interface ResourceSelector<R extends Resource>

    • Method Detail

      • getResource

        R getResource​(java.net.URI referenceURI)
               throws java.io.IOException
        Retrieves a description of the resource with the given reference URI.
        Parameters:
        referenceURI - The reference URI of the resource in question.
        Returns:
        A description of the identified resource.
        Throws:
        java.io.IOException - Thrown if there is an error retrieving the resource description.
      • selectInputResource

        R selectInputResource​(R oldResource)
                       throws java.lang.SecurityException,
                              java.io.IOException
        Selects a resource for input.
        Parameters:
        oldResource - The currently selected resource, if applicable, or null if there is no selected resource.
        Returns:
        The selected resource, or null if selection was canceled.
        Throws:
        java.lang.SecurityException - Thrown if selecting an input resource is not allowed.
        java.io.IOException - Thrown if there is an error locating a resource.
      • selectOutputResource

        R selectOutputResource​(R oldResource)
                        throws java.lang.SecurityException,
                               java.io.IOException
        Selects a resource for output.
        Parameters:
        oldResource - The currently selected resource, if applicable, or null if there is no selected resource.
        Returns:
        The selected resource, or null if selection was canceled.
        Throws:
        java.lang.SecurityException - Thrown if selecting an output resource is not allowed.
        java.io.IOException - Thrown if there is an error locating a resource.