Package org.restlet.engine.util
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.
-
-
Field Summary
Fields Modifier and Type Field Description private RestletchildThe child delegate, typically an application.private ContextparentContextThe parent context.
-
Constructor Summary
Constructors Constructor Description ChildContext(Context parentContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestletgetChild()Returns the child.protected ContextgetParentContext()Returns the parent context.voidsetChild(Restlet child)Sets the child.-
Methods inherited from class org.restlet.Context
createChildContext, getAttributes, getClientDispatcher, getCurrent, getCurrentLogger, getDefaultEnroler, getDefaultVerifier, getExecutorService, getLogger, getParameters, getServerDispatcher, setAttributes, setClientDispatcher, setCurrent, setDefaultEnroler, setDefaultVerifier, setExecutorService, setLogger, setLogger, setParameters, setServerDispatcher
-
-
-
-
Constructor Detail
-
ChildContext
public ChildContext(Context parentContext)
Constructor.- Parameters:
parentContext- The parent context.
-
-