|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Context
com.noelios.restlet.component.ChildContext
public class ChildContext
Context based on a parent component's context but dedicated to a child Restlet, typically to an application.
Constructor Summary | |
---|---|
ChildContext(Context parentContext)
Constructor. |
Method Summary | |
---|---|
Context |
createChildContext()
|
static java.lang.String |
getBestClassName(java.lang.Class<?> clazz)
Return the best class name. |
Restlet |
getChild()
Returns the child. |
ChildClientDispatcher |
getClientDispatcher()
|
static java.lang.String |
getLoggerName(java.lang.String baseName,
java.lang.Object owner)
Returns a non-null logger name. |
protected Context |
getParentContext()
Returns the parent context. |
Uniform |
getServerDispatcher()
|
void |
setChild(Restlet child)
Sets the child. |
Methods inherited from class org.restlet.Context |
---|
getAttributes, getCurrent, getCurrentLogger, getDispatcher, getLogger, getParameters, setAttributes, setCurrent, setLogger, setLogger, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildContext(Context parentContext)
parentContext
- The parent context.Method Detail |
---|
public static java.lang.String getLoggerName(java.lang.String baseName, java.lang.Object owner)
baseName
- The base logger name to prepend, without a trailing dot.owner
- The context owner.
public static java.lang.String getBestClassName(java.lang.Class<?> clazz)
clazz
- The class to name.
public Context createChildContext()
createChildContext
in class Context
public Restlet getChild()
public ChildClientDispatcher getClientDispatcher()
getClientDispatcher
in class Context
protected Context getParentContext()
public Uniform getServerDispatcher()
getServerDispatcher
in class Context
public void setChild(Restlet child)
child
- The child.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |