public class StoreConfig extends java.lang.Object implements IStoreConfig
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm |
| Constructor and Description |
|---|
StoreConfig() |
| Modifier and Type | Method and Description |
|---|---|
StoreRegistry |
getRegistry()
Get the StoreRegistry with all factory to generate the
server.xml/context.xml files.
|
Server |
getServer()
Get associated server
|
java.lang.String |
getServerFilename()
Get server.xml location
|
void |
setRegistry(StoreRegistry aRegistry)
set StoreRegistry
|
void |
setServer(Server aServer)
Set associated server
|
void |
setServerFilename(java.lang.String string)
Set new server.xml location.
|
boolean |
store(Context aContext)
Store the specified Context properties.
|
void |
store(java.io.PrintWriter aWriter,
int indent,
Context aContext)
Store the specified Context properties.
|
void |
store(java.io.PrintWriter aWriter,
int indent,
Host aHost)
Store the specified Host properties.
|
void |
store(java.io.PrintWriter writer,
int indent,
Server aServer)
Store the specified Server properties.
|
void |
store(java.io.PrintWriter aWriter,
int indent,
Service aService)
Store the specified Service properties.
|
boolean |
store(Server aServer)
Write the configuration information for this entire
Server
out to the server.xml configuration file. |
void |
storeConfig()
Store current Server.
|
void |
storeContext(java.lang.String aContextName,
boolean backup,
boolean externalAllowed)
Store a Context from ObjectName.
|
void |
storeServer(java.lang.String aServerName,
boolean backup,
boolean externalAllowed)
Store Server from Object Name (Catalina:type=Server).
|
protected static final StringManager sm
public java.lang.String getServerFilename()
public void setServerFilename(java.lang.String string)
string - The server.xml locationpublic StoreRegistry getRegistry()
getRegistry in interface IStoreConfigIStoreConfig.getRegistry()public void setServer(Server aServer)
IStoreConfigsetServer in interface IStoreConfigaServer - the associated serverpublic Server getServer()
IStoreConfiggetServer in interface IStoreConfigpublic void setRegistry(StoreRegistry aRegistry)
setRegistry in interface IStoreConfigaRegistry - aregistry that handle the store operationsIStoreConfig.setRegistry(org.apache.catalina.storeconfig.StoreRegistry)public void storeConfig()
storeConfig in interface IStoreConfigpublic void storeServer(java.lang.String aServerName,
boolean backup,
boolean externalAllowed)
throws javax.management.MalformedObjectNameException
aServerName - Server ObjectNamebackup - true to backup existing configuration files
before rewriting themexternalAllowed - true to allow saving webapp
configuration for webapps that are not inside the host's app
directoryjavax.management.MalformedObjectNameException - Bad MBean namepublic void storeContext(java.lang.String aContextName,
boolean backup,
boolean externalAllowed)
throws javax.management.MalformedObjectNameException
aContextName - MBean ObjectNamebackup - true to backup existing configuration files
before rewriting themexternalAllowed - true to allow saving webapp
configuration for webapps that are not inside the host's app
directoryjavax.management.MalformedObjectNameException - Bad MBean namepublic boolean store(Server aServer)
Server
out to the server.xml configuration file.store in interface IStoreConfigaServer - Server instancetrue if the store operation was successfulpublic boolean store(Context aContext)
IStoreConfigstore in interface IStoreConfigaContext - Object to be storedtrue if the store operation was successfulIStoreConfig.store(org.apache.catalina.Context)public void store(java.io.PrintWriter aWriter,
int indent,
Context aContext)
throws java.lang.Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaContext - Object to be storedjava.lang.Exception - Store error occurredIStoreConfig.store(java.io.PrintWriter,
int, org.apache.catalina.Context)public void store(java.io.PrintWriter aWriter,
int indent,
Host aHost)
throws java.lang.Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaHost - Object to be storedjava.lang.Exception - Store error occurredIStoreConfig.store(java.io.PrintWriter,
int, org.apache.catalina.Host)public void store(java.io.PrintWriter aWriter,
int indent,
Service aService)
throws java.lang.Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaService - Object to be storedjava.lang.Exception - Store error occurredIStoreConfig.store(java.io.PrintWriter,
int, org.apache.catalina.Service)public void store(java.io.PrintWriter writer,
int indent,
Server aServer)
throws java.lang.Exception
IStoreConfigstore in interface IStoreConfigwriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaServer - Object to be storedjava.lang.Exception - Store error occurredIStoreConfig.store(java.io.PrintWriter,
int, org.apache.catalina.Server)Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.