public class MessageMediatorImpl extends Object implements MessageMediator, ProtocolHandler, MessageHandler, Work
| Constructor and Description |
|---|
MessageMediatorImpl(ORB orb,
Connection connection,
Message dispatchHeader,
ByteBuffer byteBuffer) |
MessageMediatorImpl(ORB orb,
ContactInfo contactInfo,
Connection connection,
GIOPVersion giopVersion,
IOR ior,
int requestId,
short addrDisposition,
String operationName,
boolean isOneWay) |
protected static final ORBUtilSystemException wrapper
protected static final InterceptorsSystemException interceptorWrapper
protected ORB orb
protected ContactInfo contactInfo
protected Connection connection
protected short addrDisposition
protected CDROutputObject outputObject
protected CDRInputObject inputObject
protected Message messageHeader
protected RequestMessage requestHeader
protected LocateReplyOrReplyMessage replyHeader
protected String replyExceptionDetailMessage
protected IOR replyIOR
protected Message dispatchHeader
protected ByteBuffer dispatchByteBuffer
protected byte streamFormatVersion
protected boolean streamFormatVersionSet
protected Request diiRequest
protected boolean cancelRequestAlreadySent
protected ProtocolHandler protocolHandler
protected boolean _executeReturnServantInResponseConstructor
protected boolean _executeRemoveThreadInfoInResponseConstructor
protected boolean _executePIInResponseConstructor
protected boolean isThreadDone
public MessageMediatorImpl(ORB orb, ContactInfo contactInfo, Connection connection, GIOPVersion giopVersion, IOR ior, int requestId, short addrDisposition, String operationName, boolean isOneWay)
public MessageMediatorImpl(ORB orb, Connection connection, Message dispatchHeader, ByteBuffer byteBuffer)
public RequestId getRequestIdFromRawBytes()
getRequestIdFromRawBytes in interface MessageMediatorpublic ORB getBroker()
getBroker in interface MessageMediatorpublic ContactInfo getContactInfo()
getContactInfo in interface MessageMediatorpublic Connection getConnection()
getConnection in interface MessageMediatorpublic void initializeMessage()
MessageMediatorRequestDispatcher.initializeMessage in interface MessageMediatorpublic void finishSendingRequest()
MessageMediatorRequestDispatcher.finishSendingRequest in interface MessageMediatorpublic CDRInputObject waitForResponse()
waitForResponse in interface MessageMediatorpublic void setOutputObject(CDROutputObject outputObject)
setOutputObject in interface MessageMediatorpublic CDROutputObject getOutputObject()
getOutputObject in interface MessageMediatorpublic void setInputObject(CDRInputObject inputObject)
setInputObject in interface MessageMediatorpublic CDRInputObject getInputObject()
getInputObject in interface MessageMediatorpublic void setReplyHeader(LocateReplyOrReplyMessage header)
setReplyHeader in interface MessageMediatorpublic LocateReplyMessage getLocateReplyHeader()
getLocateReplyHeader in interface MessageMediatorpublic ReplyMessage getReplyHeader()
getReplyHeader in interface MessageMediatorpublic void setReplyExceptionDetailMessage(String message)
setReplyExceptionDetailMessage in interface MessageMediatorpublic RequestMessage getRequestHeader()
getRequestHeader in interface MessageMediatorpublic GIOPVersion getGIOPVersion()
getGIOPVersion in interface MessageMediatorpublic byte getEncodingVersion()
getEncodingVersion in interface MessageMediatorpublic int getRequestId()
getRequestId in interface MessageMediatorpublic boolean isOneWay()
isOneWay in interface MessageMediatorpublic String getOperationName()
getOperationName in interface MessageMediatorpublic ServiceContexts getRequestServiceContexts()
getRequestServiceContexts in interface MessageMediatorpublic void setRequestServiceContexts(ServiceContexts sc)
setRequestServiceContexts in interface MessageMediatorpublic ServiceContexts getReplyServiceContexts()
getReplyServiceContexts in interface MessageMediatorpublic void sendCancelRequestIfFinalFragmentNotSent()
sendCancelRequestIfFinalFragmentNotSent in interface MessageMediatorpublic boolean sentFullMessage()
public boolean sentFragment()
public void setDIIInfo(Request diiRequest)
setDIIInfo in interface MessageMediatorpublic boolean isDIIRequest()
isDIIRequest in interface MessageMediatorpublic Exception unmarshalDIIUserException(String repoId, InputStream is)
unmarshalDIIUserException in interface MessageMediatorpublic void setDIIException(Exception exception)
setDIIException in interface MessageMediatorpublic void handleDIIReply(InputStream inputStream)
handleDIIReply in interface MessageMediatorpublic Message getDispatchHeader()
getDispatchHeader in interface MessageMediatorpublic int getThreadPoolToUse()
getThreadPoolToUse in interface MessageMediatorpublic boolean dispatch()
dispatch in interface MessageMediatorpublic byte getStreamFormatVersion()
getStreamFormatVersion in interface MessageMediatorpublic byte getStreamFormatVersionForReply()
getStreamFormatVersionForReply in interface MessageMediatorpublic boolean isSystemExceptionReply()
isSystemExceptionReply in interface MessageMediatorpublic boolean isUserExceptionReply()
isUserExceptionReply in interface MessageMediatorpublic boolean isLocationForwardReply()
isLocationForwardReply in interface MessageMediatorpublic boolean isDifferentAddrDispositionRequestedReply()
isDifferentAddrDispositionRequestedReply in interface MessageMediatorpublic short getAddrDispositionReply()
getAddrDispositionReply in interface MessageMediatorpublic IOR getForwardedIOR()
getForwardedIOR in interface MessageMediatorpublic SystemException getSystemExceptionReply()
getSystemExceptionReply in interface MessageMediatorpublic ObjectKeyCacheEntry getObjectKeyCacheEntry()
getObjectKeyCacheEntry in interface MessageMediatorpublic ProtocolHandler getProtocolHandler()
getProtocolHandler in interface MessageMediatorpublic OutputStream createReply()
createReply in interface MessageMediatorcreateReply in interface ResponseHandlerpublic OutputStream createExceptionReply()
createExceptionReply in interface MessageMediatorcreateExceptionReply in interface ResponseHandlerpublic boolean executeReturnServantInResponseConstructor()
executeReturnServantInResponseConstructor in interface MessageMediatorpublic void setExecuteReturnServantInResponseConstructor(boolean b)
setExecuteReturnServantInResponseConstructor in interface MessageMediatorpublic boolean executeRemoveThreadInfoInResponseConstructor()
executeRemoveThreadInfoInResponseConstructor in interface MessageMediatorpublic void setExecuteRemoveThreadInfoInResponseConstructor(boolean b)
setExecuteRemoveThreadInfoInResponseConstructor in interface MessageMediatorpublic boolean executePIInResponseConstructor()
executePIInResponseConstructor in interface MessageMediatorpublic void setExecutePIInResponseConstructor(boolean b)
setExecutePIInResponseConstructor in interface MessageMediatorpublic boolean handleRequest(MessageMediator messageMediator)
handleRequest in interface ProtocolHandlerpublic void handleInput(Message header) throws IOException
MessageHandlerhandleInput in interface MessageHandlerIOExceptionpublic void handleInput(RequestMessage_1_0 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(RequestMessage_1_1 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(RequestMessage_1_2 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(ReplyMessage_1_0 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(ReplyMessage_1_1 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(ReplyMessage_1_2 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateRequestMessage_1_0 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateRequestMessage_1_1 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateRequestMessage_1_2 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateReplyMessage_1_0 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateReplyMessage_1_1 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(LocateReplyMessage_1_2 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(FragmentMessage_1_1 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(FragmentMessage_1_2 header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleInput(CancelRequestMessage header) throws IOException
handleInput in interface MessageHandlerIOExceptionpublic void handleRequest(RequestMessage msg, MessageMediator messageMediator)
handleRequest in interface ProtocolHandlerpublic void handleRequest(LocateRequestMessage msg, MessageMediator messageMediator)
handleRequest in interface ProtocolHandlerprotected void handleRequestRequest(MessageMediator messageMediator)
protected void handleLocateRequest(MessageMediator messageMediator)
public void handleThrowableDuringServerDispatch(MessageMediator messageMediator, Throwable throwable, CompletionStatus completionStatus)
handleThrowableDuringServerDispatch in interface ProtocolHandlerprotected void handleThrowableDuringServerDispatch(MessageMediator messageMediator, Throwable throwable, CompletionStatus completionStatus, int iteration)
protected SystemException convertThrowableToSystemException(Throwable throwable, CompletionStatus completionStatus)
protected void handleAddressingDisposition(MessageMediator messageMediator, AddressingDispositionException ex)
public MessageMediator createResponse(MessageMediator messageMediator, ServiceContexts svc)
createResponse in interface ProtocolHandlerpublic MessageMediator createUserExceptionResponse(MessageMediator messageMediator, ServiceContexts svc)
createUserExceptionResponse in interface ProtocolHandlerpublic MessageMediator createUnknownExceptionResponse(MessageMediator messageMediator, UnknownException ex)
createUnknownExceptionResponse in interface ProtocolHandlerpublic MessageMediator createSystemExceptionResponse(MessageMediator messageMediator, SystemException ex, ServiceContexts svc)
createSystemExceptionResponse in interface ProtocolHandlerpublic MessageMediator createLocationForward(MessageMediator messageMediator, IOR ior, ServiceContexts svc)
createLocationForward in interface ProtocolHandlerprotected MessageMediator createResponseHelper(MessageMediator messageMediator, ServiceContexts svc)
protected MessageMediator createResponseHelper(MessageMediator messageMediator, ServiceContexts svc, boolean user)
protected MessageMediator createResponseHelper(MessageMediator messageMediator, ReplyMessage reply, IOR ior)
protected void runServantPostInvoke(MessageMediator messageMediator)
protected void runInterceptors(MessageMediator messageMediator, ReplyMessage reply)
protected void runRemoveThreadInfo(MessageMediator messageMediator)
protected ServiceContexts getServiceContextsForReply(MessageMediator messageMediator, ServiceContexts contexts)
public void cancelRequest()
cancelRequest in interface MessageMediatorpublic void doWork()
public void setEnqueueTime(long timeInMillis)
setEnqueueTime in interface Workpublic long getEnqueueTime()
getEnqueueTime in interface WorkCopyright © 2017–2019 Eclipse Foundation. All rights reserved.