eteg.sinon.core
Class CollectorConfiguration

java.lang.Object
  extended by eteg.sinon.core.CollectorConfiguration

public class CollectorConfiguration
extends java.lang.Object

Class that represents the configurations of a Collector.

Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $
See Also:
Collector

Constructor Summary
CollectorConfiguration()
          Constructor without parameters.
 
Method Summary
 void addSecurityConfiguration(SecurityConfiguration configuration)
          Adds a SecurityConfiguration to this object.
 java.lang.String getHTTPHeader(java.lang.String name)
          Returns the value associated with a given HTTP header.
 java.util.Properties getHttpHeaders()
          Returns the value of the httpHeaders property.
 int getRetries()
          Returns the value of the retries property.
 SecurityConfiguration getSecurityConfiguration(java.lang.String id)
          Returns the SecurityConfiguration whose identifier is id.
 SecurityConfiguration[] getSecurityConfigurations()
          Returns the value of the securityConfigurations property.
 java.lang.String getThinkTimeImplementationClassName()
          Returns the value of the thinkTimeImplementationClassName property.
 java.util.Properties getThinkTimeProperties()
          Returns the value of the thinkTimeProperties property.
 int getTimeout()
          Returns the value of the timeout property.
 void setHTTPHeader(java.lang.String name, java.lang.String value)
          Adds a (name, value) pair in the set of HTTP headers sent to the Web site.
 void setRetries(int retries)
          Sets the value of the retries property.
 void setThinkTimeImplementationClassName(java.lang.String thinkTimeImplementationClassName)
          Sets the value of the thinkTimeImplementationClassName property.
 void setThinkTimeProperty(java.lang.String name, java.lang.String value)
          Adds a (name, value) pair in the think time configurations.
 void setTimeout(int timeout)
          Sets the value of the timeout property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectorConfiguration

public CollectorConfiguration()
Constructor without parameters.

Method Detail

getThinkTimeImplementationClassName

public java.lang.String getThinkTimeImplementationClassName()
Returns the value of the thinkTimeImplementationClassName property.

Returns:
a String.

setThinkTimeImplementationClassName

public void setThinkTimeImplementationClassName(java.lang.String thinkTimeImplementationClassName)
Sets the value of the thinkTimeImplementationClassName property.

Parameters:
thinkTimeImplementationClassName - the new thinkTimeImplementationClassName value.

setThinkTimeProperty

public void setThinkTimeProperty(java.lang.String name,
                                 java.lang.String value)
Adds a (name, value) pair in the think time configurations.

Parameters:
name - a String containing the configuration name.
value - a String containing the configuration value.

setHTTPHeader

public void setHTTPHeader(java.lang.String name,
                          java.lang.String value)
Adds a (name, value) pair in the set of HTTP headers sent to the Web site.

Parameters:
name - a String containing the configuration name.
value - a String containing the configuration value.

getHTTPHeader

public java.lang.String getHTTPHeader(java.lang.String name)
Returns the value associated with a given HTTP header.

Parameters:
name - a String containing the name of the HTTP header.
Returns:
a String containing the value associated with the HTTP header or null if there is no such HTTP header.

addSecurityConfiguration

public void addSecurityConfiguration(SecurityConfiguration configuration)
Adds a SecurityConfiguration to this object.

Parameters:
configuration - a SecurityConfiguration instance.

getSecurityConfigurations

public SecurityConfiguration[] getSecurityConfigurations()
Returns the value of the securityConfigurations property.

Returns:
a a SecurityConfiguration array.

getSecurityConfiguration

public SecurityConfiguration getSecurityConfiguration(java.lang.String id)
Returns the SecurityConfiguration whose identifier is id.

Parameters:
id - a String.
Returns:
a SecurityConfiguration instance or null if there is no SecurityConfiguration whose identifier is id.
Throws:
java.lang.IllegalArgumentException - if id is null.

getHttpHeaders

public java.util.Properties getHttpHeaders()
Returns the value of the httpHeaders property.

Returns:
a String.

getThinkTimeProperties

public java.util.Properties getThinkTimeProperties()
Returns the value of the thinkTimeProperties property.

Returns:
a Properties instance.

getTimeout

public int getTimeout()
Returns the value of the timeout property.

Returns:
an int.

setTimeout

public void setTimeout(int timeout)
Sets the value of the timeout property.

Parameters:
timeout - the new timeout value.

getRetries

public int getRetries()
Returns the value of the retries property.

Returns:
an int.

setRetries

public void setRetries(int retries)
Sets the value of the retries property.

Parameters:
retries - the new retries value.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.