public class TomcatContext extends Object implements Context
Context implementation that wraps a Context.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.catalina.Context |
context |
protected Host |
host |
| Constructor and Description |
|---|
TomcatContext(org.apache.catalina.Context context,
Host host) |
TomcatContext(org.apache.catalina.Context context,
Host host,
RequestListenerValveFactory valveFactory)
Constructs a new CatalinaContext wrapping the specified context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestListener(javax.servlet.ServletRequestListener listener) |
void |
addSessionListener(javax.servlet.http.HttpSessionListener listener)
Adds the specified session listener to this context.
|
boolean |
equals(Object object) |
int |
getActiveSessionCount()
Returns the number of active sessions for this context.
|
Host |
getHost() |
String |
getPath()
Returns the context path.
|
int |
hashCode() |
boolean |
isDistributable()
Indicates whether this context is distributable.
|
boolean |
isStarted() |
void |
removeRequestListener(javax.servlet.ServletRequestListener listener) |
void |
removeSessionListener(javax.servlet.http.HttpSessionListener listener)
Removes the specified session listener to this context.
|
String |
toString() |
protected final org.apache.catalina.Context context
protected final Host host
public TomcatContext(org.apache.catalina.Context context,
Host host,
RequestListenerValveFactory valveFactory)
context - the catalina contexthost - the parent containerpublic TomcatContext(org.apache.catalina.Context context,
Host host)
public String getPath()
Contextpublic void addRequestListener(javax.servlet.ServletRequestListener listener)
addRequestListener in interface Contextpublic void removeRequestListener(javax.servlet.ServletRequestListener listener)
removeRequestListener in interface Contextpublic int getActiveSessionCount()
ContextgetActiveSessionCount in interface Contextpublic boolean isDistributable()
ContextisDistributable in interface Contextpublic void addSessionListener(javax.servlet.http.HttpSessionListener listener)
ContextaddSessionListener in interface Contextlistener - a session listenerpublic void removeSessionListener(javax.servlet.http.HttpSessionListener listener)
ContextremoveSessionListener in interface Contextlistener - a session listenerCopyright © 2023 JBoss by Red Hat. All rights reserved.