org.restlet.engine.util
Class ChildContext

java.lang.Object
  extended by org.restlet.Context
      extended by 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 Summary
ChildContext(Context parentContext)
          Constructor.
 
Method Summary
 Restlet getChild()
          Returns the child.
protected  Context getParentContext()
          Returns the parent context.
 void setChild(Restlet child)
          Sets the child.
 
Methods inherited from class org.restlet.Context
createChildContext, getAttributes, getClientDispatcher, getCurrent, getCurrentLogger, getDefaultEnroler, getDefaultVerifier, getLogger, getParameters, getServerDispatcher, setAttributes, setClientDispatcher, setCurrent, setDefaultEnroler, setDefaultVerifier, setLogger, setLogger, setParameters, setServerDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2005-2013 Restlet.