1 18 19 package org.apache.beehive.netui.tools.testrecorder.shared.config; 20 21 import org.apache.beehive.netui.tools.testrecorder.shared.util.StringHelper; 22 import org.apache.beehive.netui.tools.testrecorder.shared.Logger; 23 24 import java.io.File ; 25 26 30 public class WebappDefinition { 31 32 private static final Logger log = Logger.getInstance( WebappDefinition.class ); 33 34 private String name; 35 private String description; 36 private String contextRoot; 38 private String servletUri; 39 40 public WebappDefinition( String name, String description, String contextRoot, String servletUri) { 41 this.name = name; 42 this.description = description; 43 this.contextRoot = contextRoot; 44 this.servletUri = contextRoot + "/" + servletUri; 45 } 46 47 public String getName() { 48 return name; 49 } 50 51 public String getDescription() { 52 return description; 53 } 54 55 public String getContextRoot() { 56 return contextRoot; 57 } 58 59 public String getServletUri() { 60 return servletUri; 61 } 62 63 public String toString() { 64 StringBuffer sb = new StringBuffer ( 256 ); 65 sb.append( "[ " ); 66 sb.append( "name( " + getName() + " )" ); 67 sb.append( ", description( " + getDescription() + " )" ); 68 sb.append( ", contextRoot( " + getContextRoot() + " )" ); 69 sb.append( ", servletURI( " + getServletUri() + " )" ); 70 sb.append( " ]" ); 71 return sb.toString(); 72 } 73 74 } 75 | Popular Tags |