public class LibertyServerConfigGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_DROPINS_DIR |
| Constructor and Description |
|---|
LibertyServerConfigGenerator(String serverPath,
String encryptionKey,
org.microshed.boost.common.BoostLoggerI logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(String appName) |
void |
addConfigVariables(Properties properties) |
void |
addDataSource(Map<String,String> driverInfo,
Properties datasourceProperties) |
void |
addElementWithAttributes(String elementName,
Map<String,String> attributes) |
void |
addFeature(String featureName)
Add a Liberty feature to the server configuration
|
void |
addFeatures(List<String> features)
Add a list of features to the server configuration
|
void |
addHostname(String hostname) |
void |
addHttpPort(String httpPort) |
void |
addHttpsPort(String httpsPort) |
void |
addKeystore(Map<String,String> keystoreProps,
Map<String,String> keyProps) |
Document |
getServerXmlDoc() |
boolean |
isEncoded(String property) |
void |
writeToServer()
Write the server.xml and bootstrap.properties to the server config
directory
|
public static final String CONFIG_DROPINS_DIR
public LibertyServerConfigGenerator(String serverPath, String encryptionKey, org.microshed.boost.common.BoostLoggerI logger) throws ParserConfigurationException
ParserConfigurationExceptionpublic void addFeature(String featureName)
public void addFeatures(List<String> features)
public void writeToServer()
throws TransformerException,
IOException
TransformerExceptionIOExceptionpublic void addConfigVariables(Properties properties) throws IOException
IOExceptionpublic void addApplication(String appName)
public Document getServerXmlDoc()
public boolean isEncoded(String property)
public void addDataSource(Map<String,String> driverInfo, Properties datasourceProperties) throws Exception
ExceptionCopyright © 2019 the original author or authors.