01: /*
02: * This file is part of PFIXCORE.
03: *
04: * PFIXCORE is free software; you can redistribute it and/or modify
05: * it under the terms of the GNU Lesser General Public License as published by
06: * the Free Software Foundation; either version 2 of the License, or
07: * (at your option) any later version.
08: *
09: * PFIXCORE is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public License
15: * along with PFIXCORE; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: */
19:
20: package de.schlund.pfixcore.util.basicapp.objects;
21:
22: import org.apache.log4j.Logger;
23:
24: /**
25: * Representation of a servlet object for the
26: * project
27: *
28: * @author <a href="mailto:rapude@schlund.de">Ralf Rapude</a>
29: * @version $Id: ServletObject.java 1081 2004-06-04 14:46:13Z rrapude $
30: */
31:
32: public class ServletObject {
33: private static final Logger LOG = Logger
34: .getLogger(ServletObject.class);
35: private String servletName = null;
36: private int objId = 0;
37: private int counter = 0;
38:
39: public ServletObject(int objId) {
40: LOG.debug("A new Servlet Object has been created. Id = "
41: + objId);
42: counter++;
43: this .objId = objId;
44: }
45:
46: //--> Start Getter and setter
47: /**
48: * @return Returns the servletName.
49: */
50: public String getServletName() {
51: return servletName;
52: }
53:
54: /**
55: * @param servletName The servletName to set.
56: */
57: public void setServletName(String servletName) {
58: LOG.debug("The ServletName for Servlet " + objId + " is: "
59: + servletName);
60: this .servletName = servletName;
61: }
62:
63: /**
64: * @return Returns the objId.
65: */
66: public int getObjId() {
67: return objId;
68: }
69:
70: /**
71: * returns the counter
72: */
73: public int getCounter() {
74: return counter;
75: }
76: }
|