1 7 8 package com.sun.corba.se.spi.protocol; 9 10 import org.omg.CORBA.CompletionStatus ; 11 import org.omg.CORBA.SystemException ; 12 import org.omg.CORBA.portable.UnknownException ; 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 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 ex); 44 public CorbaMessageMediator createSystemExceptionResponse( 45 CorbaMessageMediator messageMediator, 46 SystemException 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 exception, 56 CompletionStatus completionStatus); 57 58 } 59 60 | Popular Tags |