org.openqa.selenium.server
Class DefaultSeleneseCommand

java.lang.Object
  extended byorg.openqa.selenium.server.DefaultSeleneseCommand
All Implemented Interfaces:
SeleneseCommand

public class DefaultSeleneseCommand
extends java.lang.Object
implements SeleneseCommand

The default implementation of the SeleneseCommand interface

Version:
$Revision: 184 $
Author:
Paul Hammant

Constructor Summary
DefaultSeleneseCommand(java.lang.String command, java.lang.String field, java.lang.String value)
           
 
Method Summary
 java.lang.String getCommand()
           
 java.lang.String getCommandURLString()
          Return the URL query string which will be sent to the browser
 java.lang.String getField()
           
 java.lang.String getValue()
           
static SeleneseCommand parse(java.lang.String inputLine)
          Factory method to create a SeleneseCommand from a wiki-style input string
 java.lang.String toString()
           
static java.lang.String urlEncode(java.lang.String text)
          Encodes the text as an URL using UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultSeleneseCommand

public DefaultSeleneseCommand(java.lang.String command,
                              java.lang.String field,
                              java.lang.String value)
Method Detail

getCommandURLString

public java.lang.String getCommandURLString()
Description copied from interface: SeleneseCommand
Return the URL query string which will be sent to the browser

Specified by:
getCommandURLString in interface SeleneseCommand

getCommand

public java.lang.String getCommand()
Specified by:
getCommand in interface SeleneseCommand

getField

public java.lang.String getField()
Specified by:
getField in interface SeleneseCommand

getValue

public java.lang.String getValue()
Specified by:
getValue in interface SeleneseCommand

toString

public java.lang.String toString()

parse

public static SeleneseCommand parse(java.lang.String inputLine)
Factory method to create a SeleneseCommand from a wiki-style input string


urlEncode

public static java.lang.String urlEncode(java.lang.String text)
Encodes the text as an URL using UTF-8.

Parameters:
text - the text too encode
Returns:
the encoded URI string
See Also:
URLEncoder.encode(java.lang.String, java.lang.String)


Copyright © 2006 null. All Rights Reserved.