com.exoftware.exactor.command.web
Class SetProxy

java.lang.Object
  extended byjunit.framework.Assert
      extended bycom.exoftware.exactor.Command
          extended bycom.exoftware.exactor.command.web.WebCommand
              extended bycom.exoftware.exactor.command.web.SetProxy

public class SetProxy
extends WebCommand

Sets the details of a proxy server. Requires two parameters, the name of the proxy server and the port number.

Usage example;

  
      SetProxy proxy.hostname 1234
  
 

Author:
Brian Swan

Constructor Summary
SetProxy()
           
 
Method Summary
 void execute()
          Subclasses should implement this method to perform the actions of their command.
 
Methods inherited from class com.exoftware.exactor.command.web.WebCommand
getWebTester
 
Methods inherited from class com.exoftware.exactor.Command
addParameter, countParameters, getLineNumber, getName, getParameter, getParameter, getParameters, getScript, hasParameters, parametersAsString, resolveFileRelativeToScriptFile, setLineNumber, setName, setScript, substituteParameters
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetProxy

public SetProxy()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Description copied from class: Command
Subclasses should implement this method to perform the actions of their command. If the command is responsible for performing a check then a AssertionFailedError should be thrown in the event that the check fails. By default this method fails with a "Not implemented" message.

Overrides:
execute in class Command
Throws:
java.lang.Exception - if an error occurs.
See Also:
AssertionFailedError