Class ChildContext


  • public class ChildContext
    extends Context
    Context based on a parent component's context but dedicated to a child Restlet, typically to an application.
    • Field Detail

      • child

        private volatile Restlet child
        The child delegate, typically an application.
      • parentContext

        private volatile Context parentContext
        The parent context.
    • Constructor Detail

      • ChildContext

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

      • 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.