Package com.sun.corba.ee.spi.protocol
Interface ClientRequestDispatcher
-
- All Known Implementing Classes:
ClientRequestDispatcherImpl
,NoConnectionCacheImpl.NCCClientRequestDispatcherImpl
,SharedCDRClientRequestDispatcherImpl
public interface ClientRequestDispatcher
ClientRequestDispatcher
coordinates the request (and possible response) processing for a specific protocol.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CDROutputObject
beginRequest(java.lang.Object self, java.lang.String methodName, boolean isOneWay, ContactInfo contactInfo)
At the beginning of a request the presentation block uses this to obtain an OutputObject to set data to be sent on a message.void
endRequest(ORB broker, java.lang.Object self, CDRInputObject inputObject)
After the presentation block completes a request it signals the PEPt runtime by calling this method.CDRInputObject
marshalingComplete(java.lang.Object self, CDROutputObject outputObject)
After the presentation block has set data on the CDROutputObject it signals the PEPt runtime to send the encoded data by calling this method.
-
-
-
Method Detail
-
beginRequest
CDROutputObject beginRequest(java.lang.Object self, java.lang.String methodName, boolean isOneWay, ContactInfo contactInfo)
At the beginning of a request the presentation block uses this to obtain an OutputObject to set data to be sent on a message.- Parameters:
self
- -methodName
- - the remote method nameisOneWay
- -true
if the message is asynchronouscontactInfo
- - the CorbaContactInfo which which created/chose thisClientRequestDispatcher
- Returns:
- OutputObject
-
marshalingComplete
CDRInputObject marshalingComplete(java.lang.Object self, CDROutputObject outputObject) throws ApplicationException, RemarshalException
After the presentation block has set data on the CDROutputObject it signals the PEPt runtime to send the encoded data by calling this method.- Parameters:
self
- -outputObject
- object to mark as complete- Returns:
- CDRInputObject if the message is synchronous.
- Throws:
ApplicationException
- if the remote side raises an exception declared in the remote interface.RemarshalException
- RemarshalException if the PEPt runtime would like the presentation block to start over.
-
endRequest
void endRequest(ORB broker, java.lang.Object self, CDRInputObject inputObject)
After the presentation block completes a request it signals the PEPt runtime by calling this method. This method may release resources. In some cases it may cause control or error messages to be sent.- Parameters:
broker
- ORB usedself
- unusedinputObject
- unused
-
-