Class ComponentHelper


public class ComponentHelper extends CompositeHelper<Component>
Component helper.
Author:
Jerome Louvel
  • Constructor Details

    • ComponentHelper

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

    • 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 Exception
      Description copied from class: RestletHelper
      Start callback.
      Specified by:
      start in class RestletHelper<Component>
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Description copied from class: RestletHelper
      Stop callback.
      Specified by:
      stop in class RestletHelper<Component>
      Throws:
      Exception
    • update

      public void update() throws 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:
      Exception