|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.authz.common.config.AbstractConfigurationBuilder<ConfigType>
org.glite.authz.common.config.AbstractServiceConfigurationBuilder<ConfigType>
ConfigType
- the concrete type of configuration object createdpublic abstract class AbstractServiceConfigurationBuilder<ConfigType extends AbstractServiceConfiguration>
A builder of AbstractServiceConfiguration
objects.
Constructor Summary | |
---|---|
protected |
AbstractServiceConfigurationBuilder()
Constructor. |
protected |
AbstractServiceConfigurationBuilder(AbstractServiceConfiguration prototype)
Constructor that creates a builder whose settings are initialized with the properties from the given prototype configuration. |
Method Summary | |
---|---|
java.lang.String |
getAdminHost()
Gets the host upon which the admin service listens. |
java.lang.String |
getAdminPassword()
Gets the password required for admin commands. |
int |
getAdminPort()
Gets the port number upon which the admin service listens. |
java.lang.String |
getEntityId()
Gets the Entity ID of the service. |
java.lang.String |
getHost()
Gets the host to which the service will bind. |
int |
getMaxRequestQueueSize()
Gets the max number of requests the daemon will enqueue. |
int |
getPort()
Gets the port upon which the daemon will listen. |
org.opensaml.ws.soap.client.SOAPClient |
getSOAPClient()
Gets the SOAP client used by the service to communicate with other services. |
boolean |
isClientCertAuthRequired()
Gets whether client certificate authentication is required when a client is connecting. |
boolean |
isSslEnabled()
Gets whether SSL is enabled on the service port. |
protected void |
populateConfiguration(ConfigType config)
Populates the given configuration with information from this builder. |
void |
setAdminHost(java.lang.String host)
Sets the host upon which the admin service listens. |
void |
setAdminPassword(java.lang.String password)
Sets the password required for admin commands. |
void |
setAdminPort(int newPort)
Sets the port number upon which the admin service listens. |
void |
setClientCertAuthRequired(boolean required)
Sets whether client certificate authentication is required when a client is connecting. |
void |
setEntityId(java.lang.String id)
Sets the Entity ID of the service. |
void |
setHost(java.lang.String newHost)
Sets the hostname or IP address upon which the service will listen. |
void |
setMaxRequestQueueSize(int max)
Sets the max number of requests the service will enqueue. |
void |
setPort(int newPort)
Sets the port upon which the service will listen. |
void |
setSoapClient(org.opensaml.ws.soap.client.SOAPClient client)
Sets the SOAP client used by the service to communicate with other services. |
void |
setSslEnabled(boolean enabled)
Sets whether SSL is enabled on the service port. |
Methods inherited from class org.glite.authz.common.config.AbstractConfigurationBuilder |
---|
build, getConnectionTimeout, getKeyManager, getLoggingConfigFilePath, getMaxConnections, getReceiveBufferSize, getSendBufferSize, getTrustMaterialStore, setConnectionTimeout, setKeyManager, setLoggingConfigFilePath, setMaxConnections, setReceiveBufferSize, setSendBufferSize, setX509TrustMaterial |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractServiceConfigurationBuilder()
protected AbstractServiceConfigurationBuilder(AbstractServiceConfiguration prototype)
prototype
- a prototypical configuration upon which this builder will be basedMethod Detail |
---|
public java.lang.String getEntityId()
public java.lang.String getHost()
public int getMaxRequestQueueSize()
public int getPort()
public java.lang.String getAdminHost()
public int getAdminPort()
public java.lang.String getAdminPassword()
public org.opensaml.ws.soap.client.SOAPClient getSOAPClient()
public boolean isSslEnabled()
public boolean isClientCertAuthRequired()
protected void populateConfiguration(ConfigType config)
populateConfiguration
in class AbstractConfigurationBuilder<ConfigType extends AbstractServiceConfiguration>
config
- the configuration to populatepublic void setEntityId(java.lang.String id)
id
- Entity ID of the servicepublic void setHost(java.lang.String newHost)
newHost
- hostname or IP address upon which the service will listenpublic void setMaxRequestQueueSize(int max)
max
- max number of requests the service will enqueuepublic void setPort(int newPort)
newPort
- port upon which the service will listenpublic void setAdminHost(java.lang.String host)
host
- host upon which the admin service listenspublic void setAdminPort(int newPort)
newPort
- port number upon which the admin service listenspublic void setAdminPassword(java.lang.String password)
password
- password required for admin commandspublic void setSoapClient(org.opensaml.ws.soap.client.SOAPClient client)
client
- SOAP client used by the service to communicate with other servicespublic void setSslEnabled(boolean enabled)
enabled
- whether SSL is enabled on the service portpublic void setClientCertAuthRequired(boolean required)
required
- whether client certificate authentication is required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |