KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > http > HTTPRemoteNotificationClientHandler


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.http;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13 import javax.management.remote.NotificationResult JavaDoc;
14
15 import mx4j.remote.AbstractRemoteNotificationClientHandler;
16 import mx4j.remote.ConnectionNotificationEmitter;
17 import mx4j.remote.HeartBeat;
18
19 /**
20  * @version $Revision: 1.3 $
21  */

22 public class HTTPRemoteNotificationClientHandler extends AbstractRemoteNotificationClientHandler
23 {
24    private final HTTPConnection connection;
25
26    public HTTPRemoteNotificationClientHandler(HTTPConnection connection, ConnectionNotificationEmitter emitter, HeartBeat heartbeat, Map JavaDoc environment)
27    {
28       super(emitter, heartbeat, environment);
29       this.connection = connection;
30    }
31
32    protected NotificationResult JavaDoc fetchNotifications(long sequence, int maxNumber, long timeout) throws IOException JavaDoc
33    {
34       return connection.fetchNotifications(sequence, maxNumber, timeout);
35    }
36 }
37
Popular Tags