01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.om.servlet;
07:
08: import java.io.Serializable;
09:
10: /**
11: * Data structure for each <servlet-mapping> element
12: * in the portlet web.xml file. Used in ServletDefinitionImpl.
13: * Pluto's ServletMappingImpl had an id field, which didn't
14: * appear to be used anywhere.
15: * @author Ken Weiner, kweiner@unicon.net
16: * @version $Revision: 34757 $
17: */
18: public class ServletMappingImpl implements Serializable {
19:
20: private String servletName;
21: private String urlPattern;
22:
23: public ServletMappingImpl() {
24:
25: }
26:
27: public ServletMappingImpl(String servletName, String urlPattern) {
28: this ();
29: setServletName(servletName);
30: setUrlPattern(urlPattern);
31: }
32:
33: public String getServletName() {
34: return servletName;
35: }
36:
37: public String getUrlPattern() {
38: return urlPattern;
39: }
40:
41: public void setServletName(String servletName) {
42: this .servletName = servletName;
43: }
44:
45: public void setUrlPattern(String urlPattern) {
46: this.urlPattern = urlPattern;
47: }
48:
49: }
|