1 /*2 * @(#)MessageHandler.java 1.6 04/06/213 * 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 ;10 11 /**12 * Interface which allows an implementation to use13 * double dispatch when processing the various14 * concrete message types found in this package.15 */16 public interface MessageHandler17 {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 ;27 28 // Request29 void handleInput(RequestMessage_1_0 header) throws IOException ;30 void handleInput(RequestMessage_1_1 header) throws IOException ;31 void handleInput(RequestMessage_1_2 header) throws IOException ;32 33 // Reply34 void handleInput(ReplyMessage_1_0 header) throws IOException ; 35 void handleInput(ReplyMessage_1_1 header) throws IOException ;36 void handleInput(ReplyMessage_1_2 header) throws IOException ; 37 38 // LocateRequest39 void handleInput(LocateRequestMessage_1_0 header) throws IOException ;40 void handleInput(LocateRequestMessage_1_1 header) throws IOException ;41 void handleInput(LocateRequestMessage_1_2 header) throws IOException ;42 43 // LocateReply44 void handleInput(LocateReplyMessage_1_0 header) throws IOException ;45 void handleInput(LocateReplyMessage_1_1 header) throws IOException ;46 void handleInput(LocateReplyMessage_1_2 header) throws IOException ;47 48 // Fragment49 void handleInput(FragmentMessage_1_1 header) throws IOException ;50 void handleInput(FragmentMessage_1_2 header) throws IOException ;51 52 // CancelRequest53 void handleInput(CancelRequestMessage header) throws IOException ;54 }55 56