eteg.sinon.core
Class Page

java.lang.Object
  extended by eteg.sinon.core.Page

public class Page
extends java.lang.Object

Class that represents the processing of a Web page in Sinon.

Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $

Field Summary
static boolean GET_METHOD
          Constant that GET method to method property.
static boolean POST_METHOD
          Constant that defines the POST method to method property.
 
Constructor Summary
Page()
          Constructor without parameters.
 
Method Summary
 void addAction(Action action)
          Adds an Action to this page.
 void addStep(Step step)
          Adds a Step to this page.
 Action[] getActions()
          Returns the value of the actions property.
 PageConfiguration getConfiguration()
          Returns the value of the configuration property.
 java.lang.String getErrorListenerClassName()
          Returns the value of the errorListenerClassName property.
 boolean getFollowRedirects()
          Returns the value of the followRedirects property.
 java.lang.String getId()
          Returns the value of the id property.
 boolean getMethod()
          Returns the value of the method property.
 java.lang.String getPageStateListenerClassName()
          Returns the value of the pageStateListenerClassName property.
 java.lang.String getPromptListenerClassName()
          Returns the value of the promptListenerClassName property.
 Step[] getSteps()
          Returns the value of the steps property.
 PageStorageConfiguration getStorageConfiguration()
          Returns the value of the storageConfiguration property.
 java.lang.String getUrl()
          Returns the value of the url property.
 void setConfiguration(PageConfiguration configuration)
          Sets the value of the configuration property.
 void setErrorListenerClassName(java.lang.String errorListenerClassName)
          Sets the value of the errorListenerClassName property.
 void setFollowRedirects(boolean followRedirects)
          Sets the value of the followRedirects property.
 void setId(java.lang.String id)
          Sets the value of the id property.
 void setMethod(boolean method)
          Sets the value of the method property.
 void setPageStateListenerClassName(java.lang.String pageStateListenerClassName)
          Sets the value of the pageStateListenerClassName property.
 void setPromptListenerClassName(java.lang.String promptListenerClassName)
          Sets the value of the promptListenerClassName property.
 void setStorageConfiguration(PageStorageConfiguration storageConfiguration)
          Sets the value of the storageConfiguration property.
 void setUrl(java.lang.String url)
          Sets the value of the url property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_METHOD

public static final boolean POST_METHOD
Constant that defines the POST method to method property.

See Also:
Constant Field Values

GET_METHOD

public static final boolean GET_METHOD
Constant that GET method to method property.

See Also:
Constant Field Values
Constructor Detail

Page

public Page()
Constructor without parameters.

Method Detail

getId

public java.lang.String getId()
Returns the value of the id property.

Returns:
a String.

setId

public void setId(java.lang.String id)
Sets the value of the id property.

Parameters:
id - the new id value.

getMethod

public boolean getMethod()
Returns the value of the method property.

Returns:
GET_METHOD or POST_METHOD.

setMethod

public void setMethod(boolean method)
Sets the value of the method property.

Parameters:
method - GET_METHOD or POST_METHOD.

getUrl

public java.lang.String getUrl()
Returns the value of the url property.

Returns:
a String.

setUrl

public void setUrl(java.lang.String url)
Sets the value of the url property.

Parameters:
url - the new url value.

getFollowRedirects

public boolean getFollowRedirects()
Returns the value of the followRedirects property.

Returns:
a boolean.

setFollowRedirects

public void setFollowRedirects(boolean followRedirects)
Sets the value of the followRedirects property.

Parameters:
followRedirects - the new followRedirects value.

getStorageConfiguration

public PageStorageConfiguration getStorageConfiguration()
Returns the value of the storageConfiguration property.

Returns:
a String.

setStorageConfiguration

public void setStorageConfiguration(PageStorageConfiguration storageConfiguration)
Sets the value of the storageConfiguration property.

Parameters:
storageConfiguration - the new storageConfiguration value.

addStep

public void addStep(Step step)
Adds a Step to this page.

Parameters:
step - a Step instance.

getSteps

public Step[] getSteps()
Returns the value of the steps property.

Returns:
a Step array.

addAction

public void addAction(Action action)
Adds an Action to this page.

Parameters:
action - a Action instance.

getActions

public Action[] getActions()
Returns the value of the actions property.

Returns:
a Action array.

getConfiguration

public PageConfiguration getConfiguration()
Returns the value of the configuration property.

Returns:
a String.

setConfiguration

public void setConfiguration(PageConfiguration configuration)
Sets the value of the configuration property.

Parameters:
configuration - the new configuration value.

getErrorListenerClassName

public java.lang.String getErrorListenerClassName()
Returns the value of the errorListenerClassName property.

Returns:
a String.

setErrorListenerClassName

public void setErrorListenerClassName(java.lang.String errorListenerClassName)
Sets the value of the errorListenerClassName property.

Parameters:
errorListenerClassName - the new errorListenerClassName value.

getPageStateListenerClassName

public java.lang.String getPageStateListenerClassName()
Returns the value of the pageStateListenerClassName property.

Returns:
a String.

setPageStateListenerClassName

public void setPageStateListenerClassName(java.lang.String pageStateListenerClassName)
Sets the value of the pageStateListenerClassName property.

Parameters:
pageStateListenerClassName - the new pageStateListenerClassName value.

getPromptListenerClassName

public java.lang.String getPromptListenerClassName()
Returns the value of the promptListenerClassName property.

Returns:
a String.

setPromptListenerClassName

public void setPromptListenerClassName(java.lang.String promptListenerClassName)
Sets the value of the promptListenerClassName property.

Parameters:
promptListenerClassName - the new promptListenerClassName value.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.