KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > protocol > giopmsgheaders > MessageHandler


1 /*
2  * @(#)MessageHandler.java 1.6 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.corba.se.impl.protocol.giopmsgheaders;
8
9 import java.io.IOException JavaDoc;
10
11 /**
12  * Interface which allows an implementation to use
13  * double dispatch when processing the various
14  * concrete message types found in this package.
15  */

16 public interface MessageHandler
17 {
18     //
19
// REVISIT - These should not throw IOException.
20
// Should be handled internally.
21

22     /**
23      * Used for message types for which we don't have concrete classes, yet,
24      * such as CloseConnection and MessageError, as well as unknown types.
25      */

26     void handleInput(Message header) throws IOException JavaDoc;
27
28     // Request
29
void handleInput(RequestMessage_1_0 header) throws IOException JavaDoc;
30     void handleInput(RequestMessage_1_1 header) throws IOException JavaDoc;
31     void handleInput(RequestMessage_1_2 header) throws IOException JavaDoc;
32
33     // Reply
34
void handleInput(ReplyMessage_1_0 header) throws IOException JavaDoc;
35     void handleInput(ReplyMessage_1_1 header) throws IOException JavaDoc;
36     void handleInput(ReplyMessage_1_2 header) throws IOException JavaDoc;
37
38     // LocateRequest
39
void handleInput(LocateRequestMessage_1_0 header) throws IOException JavaDoc;
40     void handleInput(LocateRequestMessage_1_1 header) throws IOException JavaDoc;
41     void handleInput(LocateRequestMessage_1_2 header) throws IOException JavaDoc;
42
43     // LocateReply
44
void handleInput(LocateReplyMessage_1_0 header) throws IOException JavaDoc;
45     void handleInput(LocateReplyMessage_1_1 header) throws IOException JavaDoc;
46     void handleInput(LocateReplyMessage_1_2 header) throws IOException JavaDoc;
47
48     // Fragment
49
void handleInput(FragmentMessage_1_1 header) throws IOException JavaDoc;
50     void handleInput(FragmentMessage_1_2 header) throws IOException JavaDoc;
51
52     // CancelRequest
53
void handleInput(CancelRequestMessage header) throws IOException JavaDoc;
54 }
55
56
Popular Tags