Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/milligan/eccles/tags/web/WebConversationTag.java


1   package org.milligan.eccles.tags.web;
2   
3   import org.milligan.eccles.*;
4   import com.meterware.httpunit.WebConversation;
5   
6   
7   /**
8    * Holds a web conversation
9    * @author Ian Tomey
10   *
11   */
12  
13  public class WebConversationTag extends Tag {
14  
15    public static final String CONVERSATION_PROPERTY = "conversation";
16  
17    private String property = CONVERSATION_PROPERTY;
18  
19    public WebConversationTag() {
20    }
21  
22    public String getTagName() {
23      return "web-conversation";
24    }
25    public void setProperty(String property) {
26      this.property = property;
27    }
28    public String getProperty() {
29      return property;
30    }
31  
32    /**
33     *
34     * @param state
35     * @return
36     * @throws EcclesException
37     */
38    public EcclesReturnValue doStartTag(RunState state) throws org.milligan.eccles.EcclesException {
39      WebConversation wc = new WebConversation();
40      state.setProperty(property, wc);
41      return PROCESS_CHILDREN;
42    }
43  }