001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: LoggerItem.java 6535 2005-04-08 14:52:25Z danesa $
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.webapp.jonasadmin.logging;
027:
028: import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
029:
030: /**
031: * @author Michel-Ange ANTON
032: */
033: public class LoggerItem implements NameItem {
034:
035: // --------------------------------------------------------- Constants
036:
037: public static String LOGGER_JONAS = "logger.jonas";
038: public static String LOGGER_CATALINA_ACCESS_ENGINE = "logger.catalina.accesslogvalve.engine";
039: public static String LOGGER_CATALINA_ACCESS_HOST = "logger.catalina.accesslogvalve.host";
040: public static String LOGGER_CATALINA_ACCESS_CONTEXT = "logger.catalina.accesslogvalve.context";
041:
042: // --------------------------------------------------------- Properties Variables
043:
044: private String name = null;
045: private String forward = null;
046: private String type = null;
047: private String objectName = null;
048: /**
049: * The container type on which the logger is defined
050: */
051: private String containerType = null;
052: /**
053: * Name of the container on which the logger is defined
054: * Used in case of Host and Context conatainers
055: */
056: private String containerName = null;
057:
058: // --------------------------------------------------------- Constructors
059:
060: public LoggerItem() {
061: }
062:
063: public LoggerItem(String p_Name, String p_Type, String p_Forward) {
064: setName(p_Name);
065: setType(p_Type);
066: setForward(p_Forward);
067: }
068:
069: public LoggerItem(String p_Name, String p_Type, String p_Forward,
070: String p_ObjectName, String containerType,
071: String containerName) {
072: this (p_Name, p_Type, p_Forward);
073: setObjectName(p_ObjectName);
074: setContainerType(containerType);
075: setContainerName(containerName);
076: }
077:
078: // --------------------------------------------------------- Properties Methods
079:
080: public String getName() {
081: return name;
082: }
083:
084: public void setName(String name) {
085: this .name = name;
086: }
087:
088: public String getForward() {
089: return forward;
090: }
091:
092: public void setForward(String forward) {
093: this .forward = forward;
094: }
095:
096: public String getType() {
097: return type;
098: }
099:
100: public void setType(String type) {
101: this .type = type;
102: }
103:
104: public String getObjectName() {
105: return objectName;
106: }
107:
108: public void setObjectName(String objectName) {
109: this .objectName = objectName;
110: }
111:
112: /**
113: * @return Returns the contextName.
114: */
115: public String getContainerName() {
116: return containerName;
117: }
118:
119: /**
120: * @param contextName The contextName to set.
121: */
122: public void setContainerName(String contextName) {
123: this .containerName = contextName;
124: }
125:
126: /**
127: * @return Returns the containerType.
128: */
129: public String getContainerType() {
130: return containerType;
131: }
132:
133: /**
134: * @param containerType The containerType to set.
135: */
136: public void setContainerType(String containerType) {
137: this.containerType = containerType;
138: }
139:
140: }
|