Class ClapClientHelper


public class ClapClientHelper extends LocalClientHelper
Connector to the resources accessed via class loaders. Note that if you use the class authority for your CLAP URIs, you can provide a custom classloader instead of the one of the connector. For this, your requests need to have a "org.restlet.clap.classLoader" attribute set with the instance of your classloader and use the LocalReference.CLAP_CLASS authority.
Author:
Jerome Louvel
  • Constructor Details

    • ClapClientHelper

      public ClapClientHelper(Client client)
      Constructor.
      Parameters:
      client - The client to help.
  • Method Details

    • handleClassLoader

      protected void handleClassLoader(Request request, Response response, ClassLoader classLoader)
      Handles a call with a given class loader.
      Parameters:
      request - The request to handle.
      response - The response to update.
    • handleLocal

      protected void handleLocal(Request request, Response response, String decodedPath)
      Description copied from class: LocalClientHelper
      Handles a local call.
      Specified by:
      handleLocal in class LocalClientHelper
      Parameters:
      request - The request to handle.
      response - The response to update.
      decodedPath - The decoded local path.