|
||||||||||
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
public abstract class AbsVirtualContext
Virtual Context implementation that only handles operations with the default context.
Field Summary | |
---|---|
protected org.apache.catalina.Context |
defaultContext
Default context. |
protected String |
userURI
The user (virtual) URI of this context. |
Constructor Summary | |
---|---|
AbsVirtualContext(JmxService jmxService,
String userURI,
org.apache.catalina.Context contextInstance)
Creates and registers a virtual context. |
Method Summary | |
---|---|
void |
addContext(org.apache.catalina.Context contextInstance,
String policy)
Adds a context instance to this virtual context using a policy. |
protected abstract void |
addContextInternal(org.apache.catalina.Context contextInstance,
String policy)
Internal call for adding non-default context instances. |
protected org.apache.catalina.Context |
findContextObject(String versionedPath)
Finds the context object corresponding to a path. |
org.apache.catalina.Context |
findMappingObject()
Dummy definition to keep Tomcat happy. |
DirContext |
findStaticResources()
Dummy definition to keep Tomcat happy. |
URL |
getwarURL()
Dummy definition to keep Tomcat happy. |
String[] |
getwelcomeFiles()
Dummy definition to keep Tomcat happy. |
boolean |
hasContext(String versionedPath)
Checks whether a given context has been registered. |
boolean |
removeContext(String versionedPath)
Removes a context. |
boolean |
removeVirtualContext()
Completely removes this virtual context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.versioning.VirtualContextJMXInterface |
---|
getContexts, rebindContext |
Field Detail |
---|
protected org.apache.catalina.Context defaultContext
protected String userURI
Constructor Detail |
---|
public AbsVirtualContext(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 abstract void addContextInternal(org.apache.catalina.Context contextInstance, String policy) throws IllegalArgumentException
contextInstance
- Context instance (versioned path).policy
- Policy (extensible).
IllegalArgumentException
- If policy not recognized.protected org.apache.catalina.Context findContextObject(String versionedPath)
versionedPath
- Path to check against.
public void addContext(org.apache.catalina.Context contextInstance, String policy) throws IllegalArgumentException
contextInstance
- Context instance to add.policy
- Context policy.
IllegalArgumentException
- Policy is invalid.public boolean removeVirtualContext()
removeVirtualContext
in interface VirtualContextJMXInterface
ContextFinder.unbindVirtualContext(String)
.public boolean removeContext(String versionedPath)
versionedPath
- Versioned path of the context.
public boolean hasContext(String versionedPath)
hasContext
in interface VirtualContextJMXInterface
versionedPath
- Versioned path of the context.
public org.apache.catalina.Context findMappingObject()
findMappingObject
in interface WebModuleContext
public DirContext findStaticResources()
findStaticResources
in interface WebModuleContext
public String[] getwelcomeFiles()
getwelcomeFiles
in interface WebModuleContext
public URL getwarURL()
getwarURL
in interface WebModuleContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |