Package com.sun.corba.se.pept.protocol
Interface ClientRequestDispatcher
- All Known Implementing Classes:
CorbaClientRequestDispatcherImpl,SharedCDRClientRequestDispatcherImpl
public interface ClientRequestDispatcher
ClientRequestDispatcher coordinates the request (and possible
response) processing for a specific protocol.- Author:
- Harold Carr
-
Method Summary
Modifier and TypeMethodDescriptionbeginRequest(Object self, String methodName, boolean isOneWay, ContactInfo contactInfo) At the beginning of a request the presentation block uses this to obtain anOutputObjectto set data to be sent on a message.voidendRequest(Broker broker, Object self, InputObject inputObject) After the presentation block completes a request it signals the PEPt runtime by calling this method.marshalingComplete(Object self, OutputObject outputObject) After the presentation block has set data on theOutputObjectit signals the PEPt runtime to send the encoded data by calling this method.
-
Method Details
-
beginRequest
OutputObject beginRequest(Object self, String methodName, boolean isOneWay, ContactInfo contactInfo) At the beginning of a request the presentation block uses this to obtain anOutputObjectto set data to be sent on a message.- Parameters:
self- -methodName- - the remote method nameisOneWay- -trueif the message is asynchronouscontactInfo- - theContactInfowhich which created/chose thisClientRequestDispatcher- Returns:
OutputObject
-
marshalingComplete
InputObject marshalingComplete(Object self, OutputObject outputObject) throws ApplicationException, RemarshalException After the presentation block has set data on theOutputObjectit signals the PEPt runtime to send the encoded data by calling this method.- Parameters:
self- -outputObject-- Returns:
InputObjectif the message is synchronous.- Throws:
ApplicationExceptionRemarshalException
-
endRequest
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- -inputObject- -
-