1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 */
11 package psiprobe.model;
12
13 /**
14 * A model class representing a servlet mapping item.
15 */
16 public class ServletMapping {
17
18 /** The application name. */
19 private String applicationName;
20
21 /** The url. */
22 private String url;
23
24 /** The servlet name. */
25 private String servletName;
26
27 /** The servlet class. */
28 private String servletClass;
29
30 /** The available. */
31 private boolean available;
32
33 /**
34 * Gets the application name.
35 *
36 * @return the application name
37 */
38 public String getApplicationName() {
39 return applicationName;
40 }
41
42 /**
43 * Sets the application name.
44 *
45 * @param applicationName the new application name
46 */
47 public void setApplicationName(String applicationName) {
48 this.applicationName = applicationName;
49 }
50
51 /**
52 * Gets the url.
53 *
54 * @return the url
55 */
56 public String getUrl() {
57 return url;
58 }
59
60 /**
61 * Sets the url.
62 *
63 * @param url the new url
64 */
65 public void setUrl(String url) {
66 this.url = url;
67 }
68
69 /**
70 * Gets the servlet name.
71 *
72 * @return the servlet name
73 */
74 public String getServletName() {
75 return servletName;
76 }
77
78 /**
79 * Sets the servlet name.
80 *
81 * @param servletName the new servlet name
82 */
83 public void setServletName(String servletName) {
84 this.servletName = servletName;
85 }
86
87 /**
88 * Gets the servlet class.
89 *
90 * @return the servlet class
91 */
92 public String getServletClass() {
93 return servletClass;
94 }
95
96 /**
97 * Sets the servlet class.
98 *
99 * @param servletClass the new servlet class
100 */
101 public void setServletClass(String servletClass) {
102 this.servletClass = servletClass;
103 }
104
105 /**
106 * Checks if is available.
107 *
108 * @return true, if is available
109 */
110 public boolean isAvailable() {
111 return available;
112 }
113
114 /**
115 * Sets the available.
116 *
117 * @param available the new available
118 */
119 public void setAvailable(boolean available) {
120 this.available = available;
121 }
122
123 }