Class ObapClientHelper


  • public class ObapClientHelper
    extends org.restlet.engine.local.LocalClientHelper
    Connector to the resources accessed via bundles.
    Author:
    Thierry Boileau
    • Constructor Summary

      Constructors 
      Constructor Description
      ObapClientHelper​(org.restlet.Client client)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void clear()
      Clears the registry of bundles.
      protected void handleBundle​(org.restlet.Request request, org.restlet.Response response, org.osgi.framework.Bundle bundle)
      /** Handles a call with a given bundle.
      protected void handleLocal​(org.restlet.Request request, org.restlet.Response response, java.lang.String decodedPath)  
      static boolean register​(org.osgi.framework.Bundle bundle)
      Registers the given bundle.
      • Methods inherited from class org.restlet.engine.local.LocalClientHelper

        getDefaultLanguage, getTimeToLive, handle
      • Methods inherited from class org.restlet.engine.connector.ConnectorHelper

        getConnectorService, getContext, getProtocols, start, stop, update
      • Methods inherited from class org.restlet.engine.RestletHelper

        getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObapClientHelper

        public ObapClientHelper​(org.restlet.Client client)
        Constructor.
        Parameters:
        client - The client to help.
    • Method Detail

      • clear

        public static void clear()
        Clears the registry of bundles.
      • register

        public static boolean register​(org.osgi.framework.Bundle bundle)
        Registers the given bundle.
        Parameters:
        bundle - The bundle to register.
        Returns:
        True if the bundle was successfully registered.
      • handleBundle

        protected void handleBundle​(org.restlet.Request request,
                                    org.restlet.Response response,
                                    org.osgi.framework.Bundle bundle)
        /** Handles a call with a given bundle.
        Parameters:
        request - The request to handle.
        response - The response to update.
        bundle - The bundle to look for representations from.
      • handleLocal

        protected void handleLocal​(org.restlet.Request request,
                                   org.restlet.Response response,
                                   java.lang.String decodedPath)
        Specified by:
        handleLocal in class org.restlet.engine.local.LocalClientHelper