KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > pept > protocol > ProtocolHandler


1 /*
2  * @(#)ProtocolHandler.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.pept.protocol;
9
10 import com.sun.corba.se.pept.protocol.MessageMediator;
11
12 /**
13  * <code>ProtocolHandler</code> is used to determine the
14  * type of an incoming message.
15  *
16  * @author Harold Carr
17  */

18 public interface ProtocolHandler
19 {
20     // REVISIT - return type
21
/**
22      * This method determines the type of an incoming message and
23      * dispatches it appropriately.
24      *
25      * For example, on the server side, it may find a
26      * {@link com.sun.corba.se.pept.protocol.ServerRequestDispatcher
27      * ServerRequestDispatcher} to handle the request. On the client-side
28      * it may signal a waiting thread to handle a reply.
29      *
30      * @return deprecated
31      */

32     public boolean handleRequest(MessageMediator messageMediator);
33 }
34
35 // End of file.
36
Popular Tags