public class Configuration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Configuration.ConfigurationCustomizer |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dir |
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomizer(Configuration.ConfigurationCustomizer configurationCustomizer) |
void |
addCustomWebResources(java.lang.String web) |
boolean |
areWebResourcesCached() |
Configuration |
classesFilter(Filter filter) |
Configuration |
conf(java.lang.String config) |
Configuration |
dir(java.lang.String dir) |
Filter |
getClassesFilter() |
java.lang.String |
getClientAuth() |
java.lang.String |
getConf() |
java.util.Collection<Connector> |
getConnectors() |
java.util.Collection<java.lang.String> |
getCustomWebResources() |
java.lang.String |
getDir() |
java.lang.String |
getHost() |
int |
getHttpPort() |
int |
getHttpsPort() |
java.lang.String |
getKeyAlias() |
java.lang.String |
getKeystoreFile() |
java.lang.String |
getKeystorePass() |
java.lang.String |
getKeystoreType() |
LoginConfigBuilder |
getLoginConfig() |
java.util.Properties |
getProperties() |
Realm |
getRealm() |
java.util.Map<java.lang.String,java.lang.String> |
getRoles() |
java.util.Collection<SecurityConstaintBuilder> |
getSecurityConstraints() |
java.io.File |
getServerXmlFile() |
java.lang.String |
getSslProtocol() |
int |
getStopPort() |
java.lang.String |
getTempDir() |
java.util.Map<java.lang.String,java.lang.String> |
getUsers() |
java.lang.String |
getWebXml() |
boolean |
hasServerXml() |
Configuration |
http(int port) |
boolean |
isDeleteBaseOnStartup() |
boolean |
isDeployOpenEjbApp() |
boolean |
isHttp2() |
boolean |
isKeepServerXmlAsThis() |
boolean |
isQuickSession() |
boolean |
isSkipHttp() |
boolean |
isSsl() |
boolean |
isWithEjbRemote() |
Configuration |
loadFrom(java.lang.String resource) |
void |
loadFromProperties(java.util.Properties config) |
Configuration |
loginConfig(LoginConfigBuilder loginConfig) |
Configuration |
property(java.lang.String key,
java.lang.String value) |
Configuration |
randomHttpPort() |
Configuration |
role(java.lang.String user,
java.lang.String roles) |
Configuration |
securityConstaint(SecurityConstaintBuilder constraint) |
void |
setClassesFilter(Filter filter) |
void |
setClientAuth(java.lang.String clientAuth) |
void |
setConf(java.lang.String conf) |
void |
setCustomWebResources(java.lang.String web) |
void |
setDeleteBaseOnStartup(boolean deleteBaseOnStartup) |
void |
setDeployOpenEjbApp(boolean deployOpenEjbApp) |
void |
setDir(java.lang.String dir) |
void |
setHost(java.lang.String host) |
void |
setHttp2(boolean http2) |
void |
setHttpPort(int httpPort) |
void |
setHttpsPort(int httpsPort) |
void |
setKeepServerXmlAsThis(boolean keepServerXmlAsThis) |
void |
setKeyAlias(java.lang.String keyAlias) |
void |
setKeystoreFile(java.lang.String keystoreFile) |
void |
setKeystorePass(java.lang.String keystorePass) |
void |
setKeystoreType(java.lang.String keystoreType) |
void |
setProperties(java.util.Properties properties) |
void |
setQuickSession(boolean quickSession) |
Configuration |
setRealm(Realm realm) |
void |
setRoles(java.util.Map<java.lang.String,java.lang.String> roles) |
void |
setServerXml(java.lang.String file) |
void |
setSkipHttp(boolean skipHttp) |
void |
setSsl(boolean ssl) |
void |
setSslProtocol(java.lang.String sslProtocol) |
void |
setStopPort(int stopPort) |
void |
setTempDir(java.lang.String tempDir) |
void |
setUsers(java.util.Map<java.lang.String,java.lang.String> users) |
void |
setWebResourceCached(boolean cached) |
Configuration |
setWebXml(java.lang.String webXml) |
void |
setWithEjbRemote(boolean withEjbRemote) |
Configuration |
user(java.lang.String name,
java.lang.String pwd) |
Configuration |
withEjbRemote(boolean withEjbRemote) |
public Configuration loadFrom(java.lang.String resource)
public void loadFromProperties(java.util.Properties config)
public int getHttpPort()
public void setHttpPort(int httpPort)
public Configuration randomHttpPort()
public int getStopPort()
public void setStopPort(int stopPort)
public java.lang.String getDir()
public Configuration dir(java.lang.String dir)
public boolean isWithEjbRemote()
public Configuration withEjbRemote(boolean withEjbRemote)
public void setWithEjbRemote(boolean withEjbRemote)
public void setDir(java.lang.String dir)
public java.lang.String getHost()
public int getHttpsPort()
public void setHttpsPort(int httpsPort)
public void setHost(java.lang.String host)
public java.lang.String getKeystoreFile()
public void setKeystoreFile(java.lang.String keystoreFile)
public java.lang.String getKeystorePass()
public void setKeystorePass(java.lang.String keystorePass)
public java.lang.String getKeystoreType()
public void setKeystoreType(java.lang.String keystoreType)
public java.lang.String getClientAuth()
public void setClientAuth(java.lang.String clientAuth)
public java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String keyAlias)
public void setServerXml(java.lang.String file)
public java.io.File getServerXmlFile()
public boolean hasServerXml()
public void setProperties(java.util.Properties properties)
public java.util.Properties getProperties()
public boolean isQuickSession()
public boolean isSsl()
public void setSsl(boolean ssl)
public boolean isSkipHttp()
public void setSkipHttp(boolean skipHttp)
public void setQuickSession(boolean quickSession)
public java.lang.String getSslProtocol()
public void setSslProtocol(java.lang.String sslProtocol)
public Configuration property(java.lang.String key, java.lang.String value)
public java.lang.String getTempDir()
public void setTempDir(java.lang.String tempDir)
public boolean isDeployOpenEjbApp()
public void setDeployOpenEjbApp(boolean deployOpenEjbApp)
public Configuration http(int port)
public java.util.Map<java.lang.String,java.lang.String> getUsers()
public void setUsers(java.util.Map<java.lang.String,java.lang.String> users)
public java.util.Map<java.lang.String,java.lang.String> getRoles()
public void setRoles(java.util.Map<java.lang.String,java.lang.String> roles)
public boolean isKeepServerXmlAsThis()
public void setKeepServerXmlAsThis(boolean keepServerXmlAsThis)
public Configuration user(java.lang.String name, java.lang.String pwd)
public Configuration role(java.lang.String user, java.lang.String roles)
public Configuration setWebXml(java.lang.String webXml)
public java.lang.String getWebXml()
public LoginConfigBuilder getLoginConfig()
public Configuration loginConfig(LoginConfigBuilder loginConfig)
public java.util.Collection<SecurityConstaintBuilder> getSecurityConstraints()
public Configuration securityConstaint(SecurityConstaintBuilder constraint)
public Realm getRealm()
public Configuration setRealm(Realm realm)
public boolean areWebResourcesCached()
public void setWebResourceCached(boolean cached)
public boolean isHttp2()
public void setHttp2(boolean http2)
public java.util.Collection<Connector> getConnectors()
public void addCustomizer(Configuration.ConfigurationCustomizer configurationCustomizer)
public Configuration conf(java.lang.String config)
public java.lang.String getConf()
public void setConf(java.lang.String conf)
public void setClassesFilter(Filter filter)
public Configuration classesFilter(Filter filter)
public Filter getClassesFilter()
public boolean isDeleteBaseOnStartup()
public void setDeleteBaseOnStartup(boolean deleteBaseOnStartup)
public void setCustomWebResources(java.lang.String web)
public void addCustomWebResources(java.lang.String web)
public java.util.Collection<java.lang.String> getCustomWebResources()