Class ComponentHelper

    • Field Detail

      • clientRouter

        private final ClientRouter clientRouter
        The internal client router.
      • serverRouter

        private volatile ServerRouter serverRouter
        The internal server router.
    • Constructor Detail

      • ComponentHelper

        public ComponentHelper​(Component component)
        Constructor.
        Parameters:
        component - The helper component.
    • Method Detail

      • checkVirtualHost

        private boolean checkVirtualHost​(VirtualHost host)
                                  throws java.lang.Exception
        Check the applications attached to a virtual host.
        Parameters:
        host - The parent virtual host.
        Returns:
        True if the check succeeded.
        Throws:
        java.lang.Exception
      • getClientRouter

        public ClientRouter getClientRouter()
        Returns the internal client router.
        Returns:
        the internal client router.
      • getServerRouter

        public ServerRouter getServerRouter()
        Returns the internal host router.
        Returns:
        the internal host router.
      • setServerRouter

        public void setServerRouter​(ServerRouter serverRouter)
        Sets the internal server router.
        Parameters:
        serverRouter - The internal host router.
      • start

        public void start()
                   throws java.lang.Exception
        Description copied from class: RestletHelper
        Start callback.
        Specified by:
        start in class RestletHelper<Component>
        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<Component>
        Throws:
        java.lang.Exception
      • stopHostApplications

        private void stopHostApplications​(VirtualHost host)
                                   throws java.lang.Exception
        Stop all applications attached to a virtual host
        Parameters:
        host -
        Throws:
        java.lang.Exception
      • update

        public void update()
                    throws java.lang.Exception
        Set the new server router that will compute the new routes when the first request will be received (automatic start).
        Specified by:
        update in class RestletHelper<Component>
        Throws:
        java.lang.Exception