public class ChildContext extends Context
Constructor and Description |
---|
ChildContext(Context parentContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Context |
createChildContext()
Creates a protected child context.
|
static void |
fireContextChanged(Restlet restlet,
Context context)
Indicates that a Restlet's context has changed.
|
static java.lang.String |
getBestClassName(java.lang.Class<?> clazz)
Return the best class name.
|
Restlet |
getChild()
Returns the child.
|
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.
|
void |
setChild(Restlet child)
Sets the child.
|
getAttributes, getClientDispatcher, getCurrent, getCurrentLogger, getDefaultEnroler, getDefaultVerifier, getLogger, getParameters, getServerDispatcher, setAttributes, setClientDispatcher, setCurrent, setDefaultEnroler, setDefaultVerifier, setLogger, setLogger, setParameters, setServerDispatcher
public ChildContext(Context parentContext)
parentContext
- The parent context.public static void fireContextChanged(Restlet restlet, Context context)
restlet
- The Restlet with a changed context.context
- The new context.public static java.lang.String getBestClassName(java.lang.Class<?> clazz)
clazz
- The class to name.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 Context createChildContext()
Context
createChildContext
in class Context
public Restlet getChild()
protected Context getParentContext()
public void setChild(Restlet child)
child
- The child.Copyright © 2005-2012. All Rights Reserved.