Package com.sun.corba.se.pept.protocol
Interface MessageMediator
- All Known Subinterfaces:
CorbaMessageMediator
- All Known Implementing Classes:
CorbaMessageMediatorImpl
public interface MessageMediator
MessageMediator is a central repository for artifacts
associated with an individual message.- Author:
- Harold Carr
-
Method Summary
Modifier and TypeMethodDescriptionvoidUsed to send the message (or its last fragment).TheBrokerassociated with an invocation.Get theConnectionon which this message is sent or received.Get theContactInfowhich created thisMessageMediator.Used to get theInputObjectused for the message.Used to get theOutputObjectused for the message.voidUsed to initialize message headers.voidsetInputObject(InputObject inputObject) Used to set theInputObjectused for the message.voidsetOutputObject(OutputObject outputObject) Used to set theOutputObjectused for the message.Deprecated.
-
Method Details
-
getBroker
Broker getBroker()TheBrokerassociated with an invocation.- Returns:
Broker
-
getContactInfo
ContactInfo getContactInfo()Get theContactInfowhich created thisMessageMediator.- Returns:
ContactInfo
-
getConnection
Connection getConnection()Get theConnectionon which this message is sent or received. -
initializeMessage
void initializeMessage()Used to initialize message headers. Note: this should be moved to aRequestDispatcher. -
finishSendingRequest
void finishSendingRequest()Used to send the message (or its last fragment). Note: this should be moved to aRequestDispatcher. -
waitForResponse
Deprecated.Used to wait for a response for synchronous messages. -
setOutputObject
Used to set theOutputObjectused for the message.- Parameters:
outputObject-
-
getOutputObject
OutputObject getOutputObject()Used to get theOutputObjectused for the message.- Returns:
OutputObject
-
setInputObject
Used to set theInputObjectused for the message.- Parameters:
inputObject-
-
getInputObject
InputObject getInputObject()Used to get theInputObjectused for the message.- Returns:
InputObject
-