KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > ModuleHandler1


1 package org.apache.axis2;
2
3 import org.apache.commons.logging.Log;
4 import org.apache.commons.logging.LogFactory;
5 import org.apache.axis2.context.MessageContext;
6 import org.apache.axis2.engine.AxisFault;
7 import org.apache.axis2.engine.Handler;
8 import org.apache.axis2.handlers.AbstractHandler;
9
10 import javax.xml.namespace.QName JavaDoc;
11
12 /*
13  * Copyright 2004,2005 The Apache Software Foundation.
14  *
15  * Licensed under the Apache License, Version 2.0 (the "License");
16  * you may not use this file except in compliance with the License.
17  * You may obtain a copy of the License at
18  *
19  * http://www.apache.org/licenses/LICENSE-2.0
20  *
21  * Unless required by applicable law or agreed to in writing, software
22  * distributed under the License is distributed on an "AS IS" BASIS,
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24  * See the License for the specific language governing permissions and
25  * limitations under the License.
26  *
27  *
28  */

29
30 /**
31  * Author : Deepal Jayasinghe
32  * Date: May 16, 2005
33  * Time: 11:39:25 AM
34  */

35 public class ModuleHandler1 extends AbstractHandler implements Handler {
36     private Log log = LogFactory.getLog(getClass());
37     private String JavaDoc message;
38     private QName JavaDoc name;
39     public ModuleHandler1() {
40        this.message = "inside invalid module";
41     }
42     public QName JavaDoc getName() {
43         return name;
44     }
45
46     public void invoke(MessageContext msgContext) throws AxisFault {
47         log.info("I am " + message + " Handler Running :)");
48     }
49
50     public void revoke(MessageContext msgContext) {
51         log.info("I am " + message + " Handler Running :)");
52     }
53
54     public void setName(QName JavaDoc name) {
55         this.name = name;
56     }
57
58 }
59
Popular Tags