KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > logging > LoggerItem


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: LoggerItem.java,v 1.3 2005/04/08 14:52:24 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.logging;
27
28 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
29
30 /**
31  * @author Michel-Ange ANTON
32  */

33 public class LoggerItem implements NameItem {
34
35 // --------------------------------------------------------- Constants
36

37     public static String JavaDoc LOGGER_JONAS = "logger.jonas";
38     public static String JavaDoc LOGGER_CATALINA_ACCESS_ENGINE = "logger.catalina.accesslogvalve.engine";
39     public static String JavaDoc LOGGER_CATALINA_ACCESS_HOST = "logger.catalina.accesslogvalve.host";
40     public static String JavaDoc LOGGER_CATALINA_ACCESS_CONTEXT = "logger.catalina.accesslogvalve.context";
41
42 // --------------------------------------------------------- Properties Variables
43

44     private String JavaDoc name = null;
45     private String JavaDoc forward = null;
46     private String JavaDoc type = null;
47     private String JavaDoc objectName = null;
48     /**
49      * The container type on which the logger is defined
50      */

51     private String JavaDoc containerType = null;
52     /**
53      * Name of the container on which the logger is defined
54      * Used in case of Host and Context conatainers
55      */

56     private String JavaDoc containerName = null;
57
58 // --------------------------------------------------------- Constructors
59

60     public LoggerItem() {
61     }
62
63     public LoggerItem(String JavaDoc p_Name, String JavaDoc p_Type, String JavaDoc p_Forward) {
64         setName(p_Name);
65         setType(p_Type);
66         setForward(p_Forward);
67     }
68
69     public LoggerItem(String JavaDoc p_Name, String JavaDoc p_Type, String JavaDoc p_Forward, String JavaDoc p_ObjectName, String JavaDoc containerType, String JavaDoc containerName) {
70         this(p_Name, p_Type, p_Forward);
71         setObjectName(p_ObjectName);
72         setContainerType(containerType);
73         setContainerName(containerName);
74     }
75
76 // --------------------------------------------------------- Properties Methods
77

78     public String JavaDoc getName() {
79         return name;
80     }
81
82     public void setName(String JavaDoc name) {
83         this.name = name;
84     }
85
86     public String JavaDoc getForward() {
87         return forward;
88     }
89
90     public void setForward(String JavaDoc forward) {
91         this.forward = forward;
92     }
93
94     public String JavaDoc getType() {
95         return type;
96     }
97
98     public void setType(String JavaDoc type) {
99         this.type = type;
100     }
101
102     public String JavaDoc getObjectName() {
103         return objectName;
104     }
105
106     public void setObjectName(String JavaDoc objectName) {
107         this.objectName = objectName;
108     }
109
110     /**
111      * @return Returns the contextName.
112      */

113     public String JavaDoc getContainerName() {
114         return containerName;
115     }
116
117
118     /**
119      * @param contextName The contextName to set.
120      */

121     public void setContainerName(String JavaDoc contextName) {
122         this.containerName = contextName;
123     }
124
125     /**
126      * @return Returns the containerType.
127      */

128     public String JavaDoc getContainerType() {
129         return containerType;
130     }
131
132
133     /**
134      * @param containerType The containerType to set.
135      */

136     public void setContainerType(String JavaDoc containerType) {
137         this.containerType = containerType;
138     }
139
140
141 }
Popular Tags