KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bus > handlers > DummyHandler


1 package org.objectweb.celtix.bus.handlers;
2
3 import java.util.Map JavaDoc;
4 import javax.xml.ws.handler.Handler;
5 import javax.xml.ws.handler.MessageContext;
6
7 public class DummyHandler implements Handler {
8
9     Map JavaDoc config;
10     private boolean initCalled;
11
12     public DummyHandler() {
13
14     }
15
16     public final boolean handleMessage(final MessageContext messageContext) {
17         return false;
18     }
19
20     public final boolean handleFault(final MessageContext messageContext) {
21         return false;
22     }
23
24     public final void init(final Map JavaDoc map) {
25         config = map;
26         initCalled = true;
27     }
28
29     public final void destroy() {
30
31     }
32
33     public final void close(final MessageContext messageContext) {
34
35     }
36
37
38     public boolean initCalled() {
39         return initCalled;
40     }
41
42     public final Map JavaDoc getConfig() {
43         return config;
44     }
45 }
46
Popular Tags