Class ApplicationHelper


  • public class ApplicationHelper
    extends CompositeHelper<org.restlet.Application>
    Application implementation.
    Author:
    Jerome Louvel
    • Constructor Detail

      • ApplicationHelper

        public ApplicationHelper​(org.restlet.Application application)
        Constructor.
        Parameters:
        application - The application to help.
    • Method Detail

      • handle

        public void handle​(org.restlet.Request request,
                           org.restlet.Response response)
        In addition to the default behavior, it saves the current application instance into the current thread.
        Overrides:
        handle in class CompositeHelper<org.restlet.Application>
        Parameters:
        request - The request to handle.
        response - The response to update.
      • setContext

        public void setContext​(org.restlet.Context context)
        Sets the context.
        Parameters:
        context - The context.
      • start

        public void start()
                   throws java.lang.Exception
        Start hook.
        Specified by:
        start in class RestletHelper<org.restlet.Application>
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Description copied from class: RestletHelper
        Stop callback.
        Specified by:
        stop in class RestletHelper<org.restlet.Application>
        Throws:
        java.lang.Exception