1 package org.jahia.clipbuilder.html.struts; 2 3 import org.apache.struts.action.*; 4 import org.jahia.clipbuilder.html.struts.Util.AbstractWizardForm; 5 import org.jahia.clipbuilder.html.bean.*; 6 import org.jahia.clipbuilder.html.struts.Util.Constants; 7 import org.jahia.clipbuilder.html.struts.webBrowser.WebBrowserForm; 8 import org.jahia.clipbuilder.html.SessionManager; 9 10 12 17 public class BrowseForm extends AbstractWizardForm { 18 private String sourceUrl; 19 private String from; 20 private String linkHash; 21 private String state; 22 private String bodyContent; 23 private String continueBrowsing; 24 private String httpMethod; 25 private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(BrowseForm.class); 26 27 28 33 public void setSourceUrl(String sourceUrl) { 34 this.sourceUrl = sourceUrl; 35 } 36 37 38 43 public void setLinkHash(String linkHash) { 44 this.linkHash = linkHash; 45 } 46 47 48 53 public void setFrom(String from) { 54 this.from = from; 55 } 56 57 58 59 64 public void setState(String state) { 65 this.state = state; 66 } 67 68 69 74 public void setBodyContent(String bodyContent) { 75 this.bodyContent = bodyContent; 76 } 77 78 79 84 public void setContinueBrowsing(String continueBrowsing) { 85 this.continueBrowsing = continueBrowsing; 86 } 87 88 89 94 public void setHttpMethod(String httpMethod) { 95 this.httpMethod = httpMethod; 96 } 97 98 99 104 public String getLinkHash() { 105 return this.linkHash; 106 } 107 108 109 114 public String getFrom() { 115 return this.from; 116 } 117 118 119 124 public String getSourceUrl() { 125 return sourceUrl; 126 } 127 128 129 134 public String getState() { 135 return state; 136 } 137 138 139 144 public String getBodyContent() { 145 if (bodyContent == null) { 146 setBodyContent(""); 147 } 148 return bodyContent; 149 } 150 151 152 157 public String getContinueBrowsing() { 158 return continueBrowsing; 159 } 160 161 162 167 public String getHttpMethod() { 168 if (httpMethod == null) { 169 logger.debug("httpMethod set with a default value"); 170 setHttpMethod("GET"); 171 } 172 return httpMethod; 173 } 174 175 176 181 public int getId() { 182 return Constants.BROWSE; 183 } 184 185 186 187 192 public ActionErrors getErrors() { 193 ActionErrors errors = new ActionErrors(); 194 return errors; 195 } 196 197 198 203 public void loadFromClipperBean(ClipperBean cBean) { 204 205 } 206 } 207 | Popular Tags |