1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.pluto.portalImpl.om.servlet.impl;
21
22 import org.apache.pluto.util.StringUtils;
23
24 public class ServletMappingImpl implements java.io.Serializable {
25
26 private String id = null;
27 private String servletName = null;
28 private String urlPattern = null;
29
30 public ServletMappingImpl()
31 {
32 }
33
34
35
36 public String getId()
37 {
38 return id;
39 }
40
41 public void setId(String id)
42 {
43 this.id = id;
44 }
45
46 public String getServletName()
47 {
48 return servletName;
49 }
50
51 public void setServletName(String servletName)
52 {
53 this.servletName = servletName;
54 }
55
56 public String getUrlPattern()
57 {
58 return urlPattern;
59 }
60
61 public void setUrlPattern(String urlPattern)
62 {
63 this.urlPattern = urlPattern;
64 }
65
66
67
68 public String toString()
69 {
70 return toString(0);
71 }
72
73 public String toString(int indent)
74 {
75 StringBuffer buffer = new StringBuffer(50);
76 StringUtils.newLine(buffer,indent);
77 buffer.append(getClass().toString()); buffer.append(":");
78 StringUtils.newLine(buffer,indent);
79 buffer.append("{");
80 StringUtils.newLine(buffer,indent);
81 buffer.append("id='"); buffer.append(id); buffer.append("'");
82 StringUtils.newLine(buffer,indent);
83 buffer.append("servletName='"); buffer.append(servletName); buffer.append("'");
84 StringUtils.newLine(buffer,indent);
85 buffer.append("urlPattern='"); buffer.append(urlPattern); buffer.append("'");
86 StringUtils.newLine(buffer,indent);
87 buffer.append("}");
88 return buffer.toString();
89 }
90
91 }