|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log.ContextStack
The ContextStack records the nested context of an application. The context is an application defined characteristeric. For instance a webserver context may be defined as the session that is currently used to connect to server. A application may have context defined by current thread. A applet may have it's context defined by the name of the applet etc.
Constructor Summary | |
ContextStack()
Deprecated. |
Method Summary | |
void |
clear()
Deprecated. Empty the context stack. |
Object |
get(int index)
Deprecated. Get the context at a particular depth. |
static ContextStack |
getCurrentContext()
Deprecated. Get the Current ContextStack. |
int |
getSize()
Deprecated. Get the number of contexts in stack. |
Object |
pop()
Deprecated. Remove a context from top of stack and return it. |
void |
push(Object context)
Deprecated. Push the context onto top of context stack. |
void |
set(ContextStack stack)
Deprecated. Set the current ContextSet to be equl to other ContextStack. |
String |
toString()
Deprecated. Format context stack into a string. |
String |
toString(int count)
Deprecated. Format context stack into a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContextStack()
Method Detail |
public static final ContextStack getCurrentContext()
public void clear()
public Object get(int index)
index
- the depth of the context to retrieve
public Object pop()
public void push(Object context)
context
- the context to place on stackpublic void set(ContextStack stack)
stack
- the value to copypublic int getSize()
public String toString()
toString
in class Object
public String toString(int count)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |