org.glite.authz.common.config
Class AbstractServiceConfigurationBuilder<ConfigType extends AbstractServiceConfiguration>

java.lang.Object
  extended by org.glite.authz.common.config.AbstractConfigurationBuilder<ConfigType>
      extended by org.glite.authz.common.config.AbstractServiceConfigurationBuilder<ConfigType>
Type Parameters:
ConfigType - the concrete type of configuration object created

public abstract class AbstractServiceConfigurationBuilder<ConfigType extends AbstractServiceConfiguration>
extends AbstractConfigurationBuilder<ConfigType>

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

AbstractServiceConfigurationBuilder

protected AbstractServiceConfigurationBuilder()
Constructor.


AbstractServiceConfigurationBuilder

protected AbstractServiceConfigurationBuilder(AbstractServiceConfiguration prototype)
Constructor that creates a builder whose settings are initialized with the properties from the given prototype configuration.

Parameters:
prototype - a prototypical configuration upon which this builder will be based
Method Detail

getEntityId

public java.lang.String getEntityId()
Gets the Entity ID of the service.

Returns:
entity ID of the service

getHost

public java.lang.String getHost()
Gets the host to which the service will bind.

Returns:
host to which the sevice will bind

getMaxRequestQueueSize

public int getMaxRequestQueueSize()
Gets the max number of requests the daemon will enqueue.

Returns:
max number of requests the daemon will enqueue

getPort

public int getPort()
Gets the port upon which the daemon will listen.

Returns:
port upon which the daemon will listen

getAdminHost

public java.lang.String getAdminHost()
Gets the host upon which the admin service listens.

Returns:
host upon which the admin service listens

getAdminPort

public int getAdminPort()
Gets the port number upon which the admin service listens.

Returns:
port number upon which the shuadmintdown service listens

getAdminPassword

public java.lang.String getAdminPassword()
Gets the password required for admin commands.

Returns:
password required for admin commands

getSOAPClient

public org.opensaml.ws.soap.client.SOAPClient getSOAPClient()
Gets the SOAP client used by the service to communicate with other services.

Returns:
SOAP client used by the service to communicate with other services

isSslEnabled

public boolean isSslEnabled()
Gets whether SSL is enabled on the service port.

Returns:
whether SSL is enabled on the service port

isClientCertAuthRequired

public boolean isClientCertAuthRequired()
Gets whether client certificate authentication is required when a client is connecting.

Returns:
whether client certificate authentication is required

populateConfiguration

protected void populateConfiguration(ConfigType config)
Populates the given configuration with information from this builder.

Overrides:
populateConfiguration in class AbstractConfigurationBuilder<ConfigType extends AbstractServiceConfiguration>
Parameters:
config - the configuration to populate

setEntityId

public void setEntityId(java.lang.String id)
Sets the Entity ID of the service.

Parameters:
id - Entity ID of the service

setHost

public void setHost(java.lang.String newHost)
Sets the hostname or IP address upon which the service will listen.

Parameters:
newHost - hostname or IP address upon which the service will listen

setMaxRequestQueueSize

public void setMaxRequestQueueSize(int max)
Sets the max number of requests the service will enqueue.

Parameters:
max - max number of requests the service will enqueue

setPort

public void setPort(int newPort)
Sets the port upon which the service will listen.

Parameters:
newPort - port upon which the service will listen

setAdminHost

public void setAdminHost(java.lang.String host)
Sets the host upon which the admin service listens.

Parameters:
host - host upon which the admin service listens

setAdminPort

public void setAdminPort(int newPort)
Sets the port number upon which the admin service listens.

Parameters:
newPort - port number upon which the admin service listens

setAdminPassword

public void setAdminPassword(java.lang.String password)
Sets the password required for admin commands.

Parameters:
password - password required for admin commands

setSoapClient

public void setSoapClient(org.opensaml.ws.soap.client.SOAPClient client)
Sets the SOAP client used by the service to communicate with other services.

Parameters:
client - SOAP client used by the service to communicate with other services

setSslEnabled

public void setSslEnabled(boolean enabled)
Sets whether SSL is enabled on the service port.

Parameters:
enabled - whether SSL is enabled on the service port

setClientCertAuthRequired

public void setClientCertAuthRequired(boolean required)
Sets whether client certificate authentication is required when a client is connecting.

Parameters:
required - whether client certificate authentication is required


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.