KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > description > HandlerDescription


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

16 package org.apache.axis2.description;
17
18 import org.apache.axis2.engine.Handler;
19
20 import javax.xml.namespace.QName JavaDoc;
21
22 /**
23  * represent the deployment information about the handler
24  */

25 public class HandlerDescription implements ParameterInclude {
26     /**
27      * Field parameterInclude
28      */

29     private final ParameterInclude parameterInclude;
30
31     /**
32      * Field name
33      */

34     private QName JavaDoc name;
35
36     /**
37      * Field rules
38      */

39     private PhaseRule rules;
40
41     /**
42      * Field handler
43      */

44     private Handler handler;
45
46     /**
47      * Field className
48      */

49     private String JavaDoc className;
50
51     /**
52      * Constructor HandlerDescription
53      */

54     public HandlerDescription() {
55         this.parameterInclude = new ParameterIncludeImpl();
56         this.rules = new PhaseRule();
57     }
58
59     /**
60      * Constructor HandlerDescription
61      *
62      * @param name
63      */

64     public HandlerDescription(QName JavaDoc name) {
65         this();
66         this.name = name;
67     }
68
69     /**
70      * @return
71      */

72     public QName JavaDoc getName() {
73         return name;
74     }
75
76     /**
77      * Method getRules
78      *
79      * @return
80      */

81     public PhaseRule getRules() {
82         return rules;
83     }
84
85     /**
86      * Method setRules
87      *
88      * @param rules
89      */

90     public void setRules(PhaseRule rules) {
91         this.rules = rules;
92     }
93
94     /**
95      * @param name
96      */

97     public void setName(QName JavaDoc name) {
98         this.name = name;
99     }
100
101     /**
102      * @param param
103      */

104     public void addParameter(Parameter param) {
105         parameterInclude.addParameter(param);
106     }
107
108     /**
109      * @param name
110      * @return
111      */

112     public Parameter getParameter(String JavaDoc name) {
113         return parameterInclude.getParameter(name);
114     }
115
116     /**
117      * @return
118      */

119     public Handler getHandler() {
120         return handler;
121     }
122
123     /**
124      * @param handler
125      */

126     public void setHandler(Handler handler) {
127         this.handler = handler;
128     }
129
130     /**
131      * Method getClassName
132      *
133      * @return
134      */

135     public String JavaDoc getClassName() {
136         return className;
137     }
138
139     /**
140      * Method setClassName
141      *
142      * @param className
143      */

144     public void setClassName(String JavaDoc className) {
145         this.className = className;
146     }
147 }
148
Popular Tags