com.waveset.adapter.ScriptedConnection
Class ScriptToken.Capture

java.lang.Object
  extended bycom.waveset.adapter.ScriptedConnection.ScriptToken
      extended bycom.waveset.adapter.ScriptedConnection.ScriptToken.Capture
Enclosing class:
ScriptToken

public static class ScriptToken.Capture
extends ScriptToken

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.


Nested Class Summary
 
Nested classes inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken
ScriptToken.Capture, ScriptToken.Send, ScriptToken.SendPassword, ScriptToken.Sleep, ScriptToken.Timeout, ScriptToken.WaitFor, ScriptToken.WaitForIgnoreCase
 
Field Summary
 
Fields inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken
CAPTURE_TIMEOUT, CLASS, code_id, DEFAULT_TIMEOUT, DEFAULT_TIMEOUT_PROPERTY, RESOURCE_POLICY_GLOBAL_SCOPE, SCRIPTTOKEN_TIMEOUT, WAITFOR_TIMEOUT, WAITFORIGNORECASE_TIMEOUT
 
Constructor Summary
ScriptToken.Capture(java.lang.String value)
          Constructor sets the capture string.
ScriptToken.Capture(java.lang.String value, int timeout)
          Constructor sets the capture string and timeout.
 
Methods inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken
getTimeout, getValue, isTimeoutSpecified, setTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptToken.Capture

public ScriptToken.Capture(java.lang.String value)
Constructor sets the capture string.


ScriptToken.Capture

public ScriptToken.Capture(java.lang.String value,
                           int timeout)
Constructor sets the capture string and timeout. Waits for the specified number of miliseconds. The default value is 10000 milliseconds or 10 seconds.