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()
Context
public void addRequestListener(javax.servlet.ServletRequestListener listener)
addRequestListener
in interface Context
public void removeRequestListener(javax.servlet.ServletRequestListener listener)
removeRequestListener
in interface Context
public int getActiveSessionCount()
Context
getActiveSessionCount
in interface Context
public boolean isDistributable()
Context
isDistributable
in interface Context
public void addSessionListener(javax.servlet.http.HttpSessionListener listener)
Context
addSessionListener
in interface Context
listener
- a session listenerpublic void removeSessionListener(javax.servlet.http.HttpSessionListener listener)
Context
removeSessionListener
in interface Context
listener
- a session listenerCopyright © 2023 JBoss by Red Hat. All rights reserved.