Apache JMeter
1.9

org.apache.jmeter.protocol.http.proxy
Class ProxyControl

java.lang.Object
  |
  +--org.apache.jmeter.testelement.AbstractTestElement
        |
        +--org.apache.jmeter.config.ConfigTestElement
              |
              +--org.apache.jmeter.protocol.http.proxy.ProxyControl
All Implemented Interfaces:
Cloneable, Serializable, TestElement

public class ProxyControl
extends ConfigTestElement
implements Serializable

Title: Apache JMeter Description: Copyright: Copyright (c) 2000 Company: Apache Foundation

Version:
1.0
Author:
Michael Stover
See Also:
Serialized Form

Nested Class Summary
static class ProxyControl.Test
           
 
Field Summary
static String EXCLUDE_LIST
           
static String INCLUDE_LIST
           
static String PORT
           
 
Fields inherited from class org.apache.jmeter.config.ConfigTestElement
PASSWORD, USERNAME
 
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement
log
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
ProxyControl()
          !
 
Method Summary
 void addConfigElement(ConfigElement config)
          !
 void addExcludedPattern(String pattern)
          !
 void addIncludedPattern(String pattern)
          !
 void clearExcludedPatterns()
          !
 void clearIncludedPatterns()
          !
 void deliverSampler(HTTPSampler sampler, TestElement[] subConfigs, byte[] serverResponse)
          Receives the recorded sampler from the proxy server for placing in the test tree
protected  boolean filterUrl(HTTPSampler sampler)
           
 String getClassLabel()
          !
 int getDefaultPort()
          !
 CollectionProperty getExcludePatterns()
           
 Class getGuiClass()
           
 CollectionProperty getIncludePatterns()
           
 int getPort()
          !
protected  void replaceValues(TestElement sampler, TestElement[] configs)
           
 void setExcludeList(Collection list)
           
 void setIncludeList(Collection list)
           
 void setPort(int port)
          !
 void setPort(String port)
           
 void startProxy()
          !
 void stopProxy()
          !
 
Methods inherited from class org.apache.jmeter.config.ConfigTestElement
addTestElement
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static final String PORT
See Also:
Constant Field Values

EXCLUDE_LIST

public static final String EXCLUDE_LIST
See Also:
Constant Field Values

INCLUDE_LIST

public static final String INCLUDE_LIST
See Also:
Constant Field Values
Constructor Detail

ProxyControl

public ProxyControl()
!ToDo (Constructor description)

Method Detail

setPort

public void setPort(int port)
!ToDo (Method description)

Parameters:
port - !ToDo (Parameter description)

setPort

public void setPort(String port)

setIncludeList

public void setIncludeList(Collection list)

setExcludeList

public void setExcludeList(Collection list)

getClassLabel

public String getClassLabel()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

getPort

public int getPort()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

getDefaultPort

public int getDefaultPort()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

getGuiClass

public Class getGuiClass()

addConfigElement

public void addConfigElement(ConfigElement config)
!ToDo

Parameters:
config - !ToDo

startProxy

public void startProxy()
!ToDo (Method description)


addExcludedPattern

public void addExcludedPattern(String pattern)
!ToDo

Parameters:
pattern - !ToDo

getExcludePatterns

public CollectionProperty getExcludePatterns()

addIncludedPattern

public void addIncludedPattern(String pattern)
!ToDo

Parameters:
pattern - !ToDo

getIncludePatterns

public CollectionProperty getIncludePatterns()

clearExcludedPatterns

public void clearExcludedPatterns()
!ToDo (Method description)


clearIncludedPatterns

public void clearIncludedPatterns()
!ToDo (Method description)


deliverSampler

public void deliverSampler(HTTPSampler sampler,
                           TestElement[] subConfigs,
                           byte[] serverResponse)
Receives the recorded sampler from the proxy server for placing in the test tree

Parameters:
sampler -
subConfigs -
serverResponse - Added to allow saving of the server's response while recording. A future consideration.

stopProxy

public void stopProxy()
!ToDo (Method description)


filterUrl

protected boolean filterUrl(HTTPSampler sampler)

replaceValues

protected void replaceValues(TestElement sampler,
                             TestElement[] configs)

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.