|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.web.tomcat6.versioning.AbsVirtualContext org.ow2.jonas.web.tomcat6.versioning.VirtualContext
public class VirtualContext
Virtual Context implementation that handles operations with the additional contexts and defines a new context called "private".
Field Summary |
---|
Fields inherited from class org.ow2.jonas.web.tomcat6.versioning.AbsVirtualContext |
---|
defaultContext, userURI |
Constructor Summary | |
---|---|
VirtualContext(JmxService jmxService,
String userURI,
org.apache.catalina.Context contextInstance)
Creates and registers a virtual context. |
Method Summary | |
---|---|
protected void |
addContextInternal(org.apache.catalina.Context contextInstance,
String policy)
Adds a new context. |
String |
findContext(org.apache.catalina.connector.Request req)
Finds the context URI string for a request. |
protected org.apache.catalina.Context |
findContextObject(String versionedPath)
Finds the context object corresponding to a path. |
protected org.apache.catalina.Context |
findDeleteContextObject(String versionedPath,
boolean delete)
Finds and optionally deletes a context object. |
protected String |
findDisabledContext(org.apache.catalina.connector.Request req)
Checks if a given session has a disabled context. |
protected String |
findPrivateContext(org.apache.catalina.connector.Request req)
Checks if a given request has a private context. |
Map<String,String> |
getContexts()
|
boolean |
hasContext(String versionedPath)
Checks whether a given context has been registered. |
boolean |
rebindContext(String versionedPath,
String policy)
Rebinds a context. |
boolean |
removeContext(String versionedPath)
Removes a context. |
Methods inherited from class org.ow2.jonas.web.tomcat6.versioning.AbsVirtualContext |
---|
addContext, findMappingObject, findStaticResources, getwarURL, getwelcomeFiles, removeVirtualContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualContext(JmxService jmxService, String userURI, org.apache.catalina.Context contextInstance)
jmxService
- JMX server.userURI
- User (virtual) URI of this context.contextInstance
- The first context instance, will be mapped as
default context.Method Detail |
---|
protected void addContextInternal(org.apache.catalina.Context contextInstance, String policy) throws IllegalArgumentException
addContextInternal
in class AbsVirtualContext
contextInstance
- Context instance (versioned path).policy
- Policy (extensible).
IllegalArgumentException
- If policy not recognized.public Map<String,String> getContexts()
protected String findPrivateContext(org.apache.catalina.connector.Request req)
req
- Request to check.
protected String findDisabledContext(org.apache.catalina.connector.Request req)
req
- Request to check.
public boolean rebindContext(String versionedPath, String policy)
versionedPath
- Versioned path of the context.policy
- New policy.
protected org.apache.catalina.Context findContextObject(String versionedPath)
findContextObject
in class AbsVirtualContext
versionedPath
- Path to check against.
protected org.apache.catalina.Context findDeleteContextObject(String versionedPath, boolean delete)
versionedPath
- Path to check against.delete
- Whether to delete when found.
public boolean removeContext(String versionedPath)
removeContext
in class AbsVirtualContext
versionedPath
- Versioned path of the context.
public boolean hasContext(String versionedPath)
hasContext
in interface VirtualContextJMXInterface
hasContext
in class AbsVirtualContext
versionedPath
- Versioned path of the context.
public String findContext(org.apache.catalina.connector.Request req)
req
- Request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |