KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > apacheds > configuration > model > Interceptor


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20 package org.apache.directory.ldapstudio.apacheds.configuration.model;
21
22
23 /**
24  * This class represents an Interceptor.
25  *
26  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
27  * @version $Rev$, $Date$
28  */

29 public class Interceptor
30 {
31     /** The name of the interceptor */
32     private String JavaDoc name;
33
34     /** The class of the class of the interceptor */
35     private String JavaDoc classType;
36
37
38     /**
39      * Creates a new instance of Interceptor.
40      *
41      * @param name
42      * the name of the interceptor
43      */

44     public Interceptor( String JavaDoc name )
45     {
46         this.name = name;
47     }
48
49
50     /**
51      * Gets the name of the interceptor.
52      *
53      * @return
54      * the name of the interceptor
55      */

56     public String JavaDoc getName()
57     {
58         return this.name;
59     }
60
61
62     /**
63      * Sets the name of the interceptor.
64      *
65      * @param name
66      * the new name to set
67      */

68     public void setName( String JavaDoc name )
69     {
70         this.name = name;
71     }
72
73
74     /**
75      * Gets the class type of the interceptor.
76      *
77      * @return
78      * the class type of the interceptor
79      */

80     public String JavaDoc getClassType()
81     {
82         return classType;
83     }
84
85
86     /**
87      * Sets the class type of the interceptor.
88      *
89      * @param classType
90      * the new class type to set
91      */

92     public void setClassType( String JavaDoc classType )
93     {
94         this.classType = classType;
95     }
96
97
98     /* (non-Javadoc)
99      * @see java.lang.Object#toString()
100      */

101     public String JavaDoc toString()
102     {
103         return name;
104     }
105 }
106
Popular Tags