|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Context
org.restlet.engine.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 void |
fireContextChanged(Restlet restlet,
Context context)
Indicates that a Restlet's context has changed. |
static String |
getBestClassName(Class<?> clazz)
Return the best class name. |
Restlet |
getChild()
Returns the child. |
static String |
getLoggerName(String baseName,
Object owner)
Returns a non-null logger name. |
protected Context |
getParentContext()
Returns the parent context. |
void |
setChild(Restlet child)
Sets the child. |
Methods inherited from class org.restlet.Context |
---|
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 |
---|
public ChildContext(Context parentContext)
parentContext
- The parent context.Method Detail |
---|
public static void fireContextChanged(Restlet restlet, Context context)
restlet
- The Restlet with a changed context.context
- The new context.public static String getBestClassName(Class<?> clazz)
clazz
- The class to name.
public static String getLoggerName(String baseName, Object owner)
baseName
- The base logger name to prepend, without a trailing dot.owner
- The context owner.
public Context createChildContext()
createChildContext
in class Context
public Restlet getChild()
protected Context getParentContext()
public void setChild(Restlet child)
child
- The child.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |