KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > protocol > CorbaProtocolHandler


1 /*
2  * @(#)CorbaProtocolHandler.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
8 package com.sun.corba.se.spi.protocol;
9
10 import org.omg.CORBA.CompletionStatus JavaDoc;
11 import org.omg.CORBA.SystemException JavaDoc;
12 import org.omg.CORBA.portable.UnknownException JavaDoc;
13
14 import com.sun.corba.se.pept.protocol.ProtocolHandler;
15
16 import com.sun.corba.se.spi.ior.IOR ;
17 import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
18
19 import com.sun.corba.se.spi.servicecontext.ServiceContexts;
20 import com.sun.corba.se.impl.protocol.giopmsgheaders.LocateRequestMessage;
21 import com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage;
22
23 /**
24  * @author Harold Carr
25  */

26 public interface CorbaProtocolHandler
27     extends ProtocolHandler
28 {
29     public void handleRequest(RequestMessage header,
30                   CorbaMessageMediator messageMediator);
31
32     public void handleRequest(LocateRequestMessage header,
33                   CorbaMessageMediator messageMediator);
34
35     public CorbaMessageMediator createResponse(
36         CorbaMessageMediator messageMediator,
37         ServiceContexts svc);
38     public CorbaMessageMediator createUserExceptionResponse(
39         CorbaMessageMediator messageMediator,
40         ServiceContexts svc);
41     public CorbaMessageMediator createUnknownExceptionResponse(
42         CorbaMessageMediator messageMediator,
43         UnknownException JavaDoc ex);
44     public CorbaMessageMediator createSystemExceptionResponse(
45         CorbaMessageMediator messageMediator,
46         SystemException JavaDoc ex,
47     ServiceContexts svc);
48     public CorbaMessageMediator createLocationForward(
49         CorbaMessageMediator messageMediator,
50         IOR ior,
51     ServiceContexts svc);
52
53     public void handleThrowableDuringServerDispatch(
54         CorbaMessageMediator request,
55     Throwable JavaDoc exception,
56     CompletionStatus JavaDoc completionStatus);
57
58 }
59
60 // End of file.
61
Popular Tags