Interface MessageMediator
- All Superinterfaces:
ResponseHandler
- All Known Implementing Classes:
MessageMediatorImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by the servant during a method invocation./////////////////////////////////////////////////booleandispatch()booleanbooleanboolean/////////////////////////////////////////////////voidUsed to send the message (or its last fragment).shortbyte/////////////////////////////////////////////////intbytebyteintvoidhandleDIIReply(InputStream inputStream) voidUsed to initialize message headers.booleanbooleanbooleanbooleanisOneWay()booleanbooleanvoidvoidsetDIIException(Exception exception) voidsetDIIInfo(Request request) voidsetExecutePIInResponseConstructor(boolean b) voidvoidsetExecuteReturnServantInResponseConstructor(boolean b) voidsetInputObject(CDRInputObject inputObject) voidsetOutputObject(CDROutputObject outputObject) voidsetReplyExceptionDetailMessage(String message) voidvoidunmarshalDIIUserException(String repoId, InputStream inputStream)
-
Method Details
-
getRequestIdFromRawBytes
RequestId getRequestIdFromRawBytes() -
setReplyHeader
-
getLocateReplyHeader
LocateReplyMessage getLocateReplyHeader() -
getReplyHeader
ReplyMessage getReplyHeader() -
setReplyExceptionDetailMessage
-
getRequestHeader
RequestMessage getRequestHeader() -
getGIOPVersion
GIOPVersion getGIOPVersion() -
getEncodingVersion
byte getEncodingVersion() -
getRequestId
int getRequestId() -
isOneWay
boolean isOneWay() -
getOperationName
String getOperationName() -
getRequestServiceContexts
ServiceContexts getRequestServiceContexts() -
setRequestServiceContexts
-
getReplyServiceContexts
ServiceContexts getReplyServiceContexts() -
getDispatchHeader
Message getDispatchHeader() -
getThreadPoolToUse
int getThreadPoolToUse() -
dispatch
boolean dispatch() -
getStreamFormatVersion
byte getStreamFormatVersion() -
getStreamFormatVersionForReply
byte getStreamFormatVersionForReply() -
sendCancelRequestIfFinalFragmentNotSent
void sendCancelRequestIfFinalFragmentNotSent() -
setDIIInfo
-
isDIIRequest
boolean isDIIRequest() -
unmarshalDIIUserException
-
setDIIException
-
handleDIIReply
-
isSystemExceptionReply
boolean isSystemExceptionReply() -
isUserExceptionReply
boolean isUserExceptionReply() -
isLocationForwardReply
boolean isLocationForwardReply() -
isDifferentAddrDispositionRequestedReply
boolean isDifferentAddrDispositionRequestedReply() -
getAddrDispositionReply
short getAddrDispositionReply() -
getForwardedIOR
IOR getForwardedIOR() -
getSystemExceptionReply
SystemException getSystemExceptionReply() -
cancelRequest
void cancelRequest() -
getObjectKeyCacheEntry
ObjectKeyCacheEntry getObjectKeyCacheEntry()///////////////////////////////////////////////// -
getProtocolHandler
ProtocolHandler getProtocolHandler() -
createReply
OutputStream createReply()/////////////////////////////////////////////////- Specified by:
createReplyin interfaceResponseHandler- Returns:
- an OutputStream suitable for marshalling the reply.
- See Also:
-
createExceptionReply
OutputStream createExceptionReply()Description copied from interface:ResponseHandlerCalled by the servant during a method invocation. The servant should call this method to create a reply marshal buffer if a user exception occurred.- Specified by:
createExceptionReplyin interfaceResponseHandler- Returns:
- an OutputStream suitable for marshalling the exception ID and the user exception body.
-
executeReturnServantInResponseConstructor
boolean executeReturnServantInResponseConstructor()///////////////////////////////////////////////// -
setExecuteReturnServantInResponseConstructor
void setExecuteReturnServantInResponseConstructor(boolean b) -
executeRemoveThreadInfoInResponseConstructor
boolean executeRemoveThreadInfoInResponseConstructor() -
setExecuteRemoveThreadInfoInResponseConstructor
void setExecuteRemoveThreadInfoInResponseConstructor(boolean b) -
executePIInResponseConstructor
boolean executePIInResponseConstructor() -
setExecutePIInResponseConstructor
void setExecutePIInResponseConstructor(boolean b) -
getBroker
ORB getBroker() -
getContactInfo
ContactInfo getContactInfo() -
getConnection
Connection getConnection() -
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
CDRInputObject waitForResponse() -
setOutputObject
-
getOutputObject
CDROutputObject getOutputObject() -
setInputObject
-
getInputObject
CDRInputObject getInputObject()
-