Class ComponentContext

java.lang.Object
org.restlet.Context
org.restlet.engine.component.ComponentContext

public class ComponentContext extends Context
Context allowing access to the component's connectors.
Author:
Jerome Louvel
  • Constructor Details

    • ComponentContext

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

    • createChildContext

      public Context createChildContext()
      Description copied from class: Context
      Creates a protected child context. This is especially useful for new application attached to their parent component, to ensure their isolation from the other applications. By default it creates a new context instance with empty or null properties, except the client and server dispatchers that are wrapped for isolation purpose.
      Overrides:
      createChildContext in class Context
      Returns:
      The child context.
    • getComponentHelper

      protected ComponentHelper getComponentHelper()
      Returns the component helper.
      Returns:
      The component helper.
    • setComponentHelper

      protected void setComponentHelper(ComponentHelper componentHelper)
      Sets the component helper.
      Parameters:
      componentHelper - The component helper.