com.waveset.adapter.ScriptedConnection
Class ScriptToken

java.lang.Object
  extended bycom.waveset.adapter.ScriptedConnection.ScriptToken
Direct Known Subclasses:
ScriptToken.Capture, ScriptToken.Send, ScriptToken.SendPassword, ScriptToken.Sleep, ScriptToken.WaitFor, ScriptToken.WaitForIgnoreCase

public class ScriptToken
extends java.lang.Object

Base class for script tokens that can be added to a Script which can be executed through a ScriptedConnection. Also contains supported types tokens.


Nested Class Summary
static class ScriptToken.Capture
          Token that captures all text from the beginning of the unprocessed input all the way up to the capture string, then eats the capture string.
static class ScriptToken.Send
          Token that just sends a particular message on the output.
static class ScriptToken.SendPassword
          Token that posts a password on the output.
static class ScriptToken.Sleep
          Token that sleeps for a specific amount of time.
static class ScriptToken.Timeout
           
static class ScriptToken.WaitFor
          Waits for and consumes up to a string in the input.
static class ScriptToken.WaitForIgnoreCase
          Waits for and consumes up to a string in the input.
 
Field Summary
static ScriptToken.Timeout CAPTURE_TIMEOUT
           
static java.lang.String CLASS
           
static java.lang.String code_id
           
protected static int DEFAULT_TIMEOUT
          Default number of milliseconds that we will wait for data to be available.
static java.lang.String DEFAULT_TIMEOUT_PROPERTY
           
static java.lang.String RESOURCE_POLICY_GLOBAL_SCOPE
           
static ScriptToken.Timeout SCRIPTTOKEN_TIMEOUT
           
static ScriptToken.Timeout WAITFOR_TIMEOUT
           
static ScriptToken.Timeout WAITFORIGNORECASE_TIMEOUT
           
 
Constructor Summary
ScriptToken(ScriptToken.Timeout timeout, java.lang.String value)
           
ScriptToken(java.lang.String value)
           
 
Method Summary
 int getTimeout()
           
 java.lang.String getValue()
           
 boolean isTimeoutSpecified()
           
 void setTimeout(int timeout)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

CLASS

public static final java.lang.String CLASS
See Also:
Constant Field Values

DEFAULT_TIMEOUT_PROPERTY

public static final java.lang.String DEFAULT_TIMEOUT_PROPERTY
See Also:
Constant Field Values

RESOURCE_POLICY_GLOBAL_SCOPE

public static final java.lang.String RESOURCE_POLICY_GLOBAL_SCOPE

SCRIPTTOKEN_TIMEOUT

public static final ScriptToken.Timeout SCRIPTTOKEN_TIMEOUT

CAPTURE_TIMEOUT

public static final ScriptToken.Timeout CAPTURE_TIMEOUT

WAITFOR_TIMEOUT

public static final ScriptToken.Timeout WAITFOR_TIMEOUT

WAITFORIGNORECASE_TIMEOUT

public static final ScriptToken.Timeout WAITFORIGNORECASE_TIMEOUT

DEFAULT_TIMEOUT

protected static final int DEFAULT_TIMEOUT
Default number of milliseconds that we will wait for data to be available.

Constructor Detail

ScriptToken

public ScriptToken(java.lang.String value)

ScriptToken

public ScriptToken(ScriptToken.Timeout timeout,
                   java.lang.String value)
Method Detail

getValue

public java.lang.String getValue()

toString

public java.lang.String toString()

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

isTimeoutSpecified

public boolean isTimeoutSpecified()