|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.VirtualServerFacade
public class VirtualServerFacade
Facade object which masks the internal VirtualServer
object from the web application.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
_logger
|
| Constructor Summary | |
|---|---|
VirtualServerFacade(java.lang.String id,
java.io.File docRoot,
WebListener... webListeners)
|
|
| Method Summary | |
|---|---|
void |
addContext(Context context,
java.lang.String contextRoot)
Registers the given Context with this VirtualServer at the given context root. |
VirtualServerConfig |
getConfig()
Gets the current configuration of this VirtualServer. |
Context |
getContext(java.lang.String contextRoot)
Finds the Context registered at the given context root. |
java.util.Collection<Context> |
getContexts()
Gets the collection of Context instances registered with this VirtualServer. |
java.io.File |
getDocRoot()
Gets the docroot of this VirtualServer. |
java.lang.String |
getID()
Return the virtual server identifier. |
VirtualServer |
getVirtualServer()
|
java.util.Collection<WebListener> |
getWebListeners()
Gets the collection of WebListener instances from which this VirtualServer receives requests. |
void |
removeContext(Context context)
Stops the given context and removes it from this VirtualServer. |
void |
setConfig(VirtualServerConfig config)
Reconfigures this VirtualServer with the given configuration. |
void |
setDocRoot(java.io.File docRoot)
Sets the docroot of this VirtualServer. |
void |
setID(java.lang.String id)
Set the virtual server identifier string. |
void |
setVirtualServer(VirtualServer vs)
|
void |
setWebListeners(WebListener... webListeners)
Sets the collection of WebListener instances from which this VirtualServer receives requests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile java.util.logging.Logger _logger
| Constructor Detail |
|---|
public VirtualServerFacade(java.lang.String id,
java.io.File docRoot,
WebListener... webListeners)
| Method Detail |
|---|
public void setDocRoot(java.io.File docRoot)
setDocRoot in interface VirtualServerdocRoot - the docroot of this VirtualServer.public java.io.File getDocRoot()
getDocRoot in interface VirtualServerpublic java.lang.String getID()
getID in interface VirtualServerpublic void setID(java.lang.String id)
setID in interface VirtualServerid - New identifier for this virtual serverpublic void setWebListeners(WebListener... webListeners)
webListeners - the collection of WebListener instances from which
this VirtualServer receives requests.public java.util.Collection<WebListener> getWebListeners()
getWebListeners in interface VirtualServer
public void addContext(Context context,
java.lang.String contextRoot)
throws ConfigException,
GlassFishException
If this VirtualServer has already been started, the given context will be started as well.
addContext in interface VirtualServerConfigException
GlassFishException
public void removeContext(Context context)
throws GlassFishException
removeContext in interface VirtualServerGlassFishExceptionpublic Context getContext(java.lang.String contextRoot)
getContext in interface VirtualServerpublic java.util.Collection<Context> getContexts()
getContexts in interface VirtualServer
public void setConfig(VirtualServerConfig config)
throws ConfigException
In order for the given configuration to take effect, this VirtualServer may be stopped and restarted.
setConfig in interface VirtualServerConfigExceptionpublic VirtualServerConfig getConfig()
getConfig in interface VirtualServerpublic void setVirtualServer(VirtualServer vs)
public VirtualServer getVirtualServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||