Class ChildContext

java.lang.Object
org.restlet.Context
org.restlet.engine.util.ChildContext

public class ChildContext extends Context
Context based on a parent component's context but dedicated to a child Restlet, typically to an application.
Author:
Jerome Louvel
  • Constructor Details

    • ChildContext

      public ChildContext(Context parentContext)
      Constructor.
      Parameters:
      parentContext - The parent context.
  • Method Details

    • getChild

      public Restlet getChild()
      Returns the child.
      Returns:
      the child.
    • getParentContext

      protected Context getParentContext()
      Returns the parent context.
      Returns:
      The parent context.
    • setChild

      public void setChild(Restlet child)
      Sets the child.
      Parameters:
      child - The child.