public class CorbaMessageMediatorImpl extends Object implements CorbaMessageMediator, CorbaProtocolHandler, MessageHandler
| Constructor and Description |
|---|
CorbaMessageMediatorImpl(ORB orb,
Connection connection) |
CorbaMessageMediatorImpl(ORB orb,
ContactInfo contactInfo,
Connection connection,
GIOPVersion giopVersion,
IOR ior,
int requestId,
short addrDisposition,
String operationName,
boolean isOneWay) |
CorbaMessageMediatorImpl(ORB orb,
CorbaConnection connection,
Message dispatchHeader,
ByteBuffer byteBuffer) |
protected ORB orb
protected ORBUtilSystemException wrapper
protected InterceptorsSystemException interceptorWrapper
protected CorbaContactInfo contactInfo
protected CorbaConnection 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 Integer requestIdInteger
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 CorbaMessageMediatorImpl(ORB orb, ContactInfo contactInfo, Connection connection, GIOPVersion giopVersion, IOR ior, int requestId, short addrDisposition, String operationName, boolean isOneWay)
public CorbaMessageMediatorImpl(ORB orb, Connection connection)
public CorbaMessageMediatorImpl(ORB orb, CorbaConnection connection, Message dispatchHeader, ByteBuffer byteBuffer)
public Broker getBroker()
MessageMediatorBroker associated
with an invocation.getBroker in interface MessageMediatorBrokerpublic ContactInfo getContactInfo()
MessageMediatorContactInfo
which created this MessageMediator.getContactInfo in interface MessageMediatorContactInfopublic Connection getConnection()
MessageMediatorConnection
on which this message is sent or received.getConnection in interface MessageMediatorpublic void initializeMessage()
MessageMediatorRequestDispatcher.initializeMessage in interface MessageMediatorpublic void finishSendingRequest()
MessageMediatorRequestDispatcher.finishSendingRequest in interface MessageMediatorpublic InputObject waitForResponse()
MessageMediatorwaitForResponse in interface MessageMediatorpublic void setOutputObject(OutputObject outputObject)
MessageMediatorOutputObject
used for the message.setOutputObject in interface MessageMediatorpublic OutputObject getOutputObject()
MessageMediatorOutputObject
used for the message.getOutputObject in interface MessageMediatorOutputObjectpublic void setInputObject(InputObject inputObject)
MessageMediatorInputObject
used for the message.setInputObject in interface MessageMediatorpublic InputObject getInputObject()
MessageMediatorInputObject
used for the message.getInputObject in interface MessageMediatorInputObjectpublic void setReplyHeader(LocateReplyOrReplyMessage header)
setReplyHeader in interface CorbaMessageMediatorpublic LocateReplyMessage getLocateReplyHeader()
getLocateReplyHeader in interface CorbaMessageMediatorpublic ReplyMessage getReplyHeader()
getReplyHeader in interface CorbaMessageMediatorpublic void setReplyExceptionDetailMessage(String message)
setReplyExceptionDetailMessage in interface CorbaMessageMediatorpublic RequestMessage getRequestHeader()
getRequestHeader in interface CorbaMessageMediatorpublic GIOPVersion getGIOPVersion()
getGIOPVersion in interface CorbaMessageMediatorpublic byte getEncodingVersion()
getEncodingVersion in interface CorbaMessageMediatorpublic int getRequestId()
getRequestId in interface CorbaMessageMediatorpublic Integer getRequestIdInteger()
getRequestIdInteger in interface CorbaMessageMediatorpublic boolean isOneWay()
isOneWay in interface CorbaMessageMediatorpublic short getAddrDisposition()
getAddrDisposition in interface CorbaMessageMediatorpublic String getOperationName()
getOperationName in interface CorbaMessageMediatorpublic ServiceContexts getRequestServiceContexts()
getRequestServiceContexts in interface CorbaMessageMediatorpublic ServiceContexts getReplyServiceContexts()
getReplyServiceContexts in interface CorbaMessageMediatorpublic void sendCancelRequestIfFinalFragmentNotSent()
sendCancelRequestIfFinalFragmentNotSent in interface CorbaMessageMediatorpublic boolean sentFullMessage()
public boolean sentFragment()
public void setDIIInfo(Request diiRequest)
setDIIInfo in interface CorbaMessageMediatorpublic boolean isDIIRequest()
isDIIRequest in interface CorbaMessageMediatorpublic Exception unmarshalDIIUserException(String repoId, InputStream is)
unmarshalDIIUserException in interface CorbaMessageMediatorpublic void setDIIException(Exception exception)
setDIIException in interface CorbaMessageMediatorpublic void handleDIIReply(InputStream inputStream)
handleDIIReply in interface CorbaMessageMediatorpublic Message getDispatchHeader()
getDispatchHeader in interface CorbaMessageMediatorpublic void setDispatchHeader(Message msg)
setDispatchHeader in interface CorbaMessageMediatorpublic ByteBuffer getDispatchBuffer()
getDispatchBuffer in interface CorbaMessageMediatorpublic void setDispatchBuffer(ByteBuffer byteBuffer)
setDispatchBuffer in interface CorbaMessageMediatorpublic int getThreadPoolToUse()
getThreadPoolToUse in interface CorbaMessageMediatorpublic byte getStreamFormatVersion()
getStreamFormatVersion in interface CorbaMessageMediatorpublic byte getStreamFormatVersionForReply()
getStreamFormatVersionForReply in interface CorbaMessageMediatorpublic boolean isSystemExceptionReply()
isSystemExceptionReply in interface CorbaMessageMediatorpublic boolean isUserExceptionReply()
isUserExceptionReply in interface CorbaMessageMediatorpublic boolean isLocationForwardReply()
isLocationForwardReply in interface CorbaMessageMediatorpublic boolean isDifferentAddrDispositionRequestedReply()
isDifferentAddrDispositionRequestedReply in interface CorbaMessageMediatorpublic short getAddrDispositionReply()
getAddrDispositionReply in interface CorbaMessageMediatorpublic IOR getForwardedIOR()
getForwardedIOR in interface CorbaMessageMediatorpublic SystemException getSystemExceptionReply()
getSystemExceptionReply in interface CorbaMessageMediatorpublic ObjectKey getObjectKey()
getObjectKey in interface CorbaMessageMediatorpublic void setProtocolHandler(CorbaProtocolHandler protocolHandler)
setProtocolHandler in interface CorbaMessageMediatorpublic CorbaProtocolHandler getProtocolHandler()
getProtocolHandler in interface CorbaMessageMediatorpublic OutputStream createReply()
ResponseHandlercreateReply in interface CorbaMessageMediatorcreateReply in interface ResponseHandlerportable
package comments for unimplemented featurespublic OutputStream createExceptionReply()
ResponseHandlercreateExceptionReply in interface CorbaMessageMediatorcreateExceptionReply in interface ResponseHandlerpublic boolean executeReturnServantInResponseConstructor()
executeReturnServantInResponseConstructor in interface CorbaMessageMediatorpublic void setExecuteReturnServantInResponseConstructor(boolean b)
setExecuteReturnServantInResponseConstructor in interface CorbaMessageMediatorpublic boolean executeRemoveThreadInfoInResponseConstructor()
executeRemoveThreadInfoInResponseConstructor in interface CorbaMessageMediatorpublic void setExecuteRemoveThreadInfoInResponseConstructor(boolean b)
setExecuteRemoveThreadInfoInResponseConstructor in interface CorbaMessageMediatorpublic boolean executePIInResponseConstructor()
executePIInResponseConstructor in interface CorbaMessageMediatorpublic void setExecutePIInResponseConstructor(boolean b)
setExecutePIInResponseConstructor in interface CorbaMessageMediatorpublic boolean handleRequest(MessageMediator messageMediator)
ProtocolHandlerServerRequestDispatcher to handle the request. On the client-side
it may signal a waiting thread to handle a reply.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 MessageHandlerIOExceptionprotected String opAndId(CorbaMessageMediator mediator)
public void handleRequest(RequestMessage msg, CorbaMessageMediator messageMediator)
handleRequest in interface CorbaProtocolHandlerpublic void handleRequest(LocateRequestMessage msg, CorbaMessageMediator messageMediator)
handleRequest in interface CorbaProtocolHandlerprotected void handleRequestRequest(CorbaMessageMediator messageMediator)
protected void handleLocateRequest(CorbaMessageMediator messageMediator)
public void handleThrowableDuringServerDispatch(CorbaMessageMediator messageMediator, Throwable throwable, CompletionStatus completionStatus)
handleThrowableDuringServerDispatch in interface CorbaProtocolHandlerprotected void handleThrowableDuringServerDispatch(CorbaMessageMediator messageMediator, Throwable throwable, CompletionStatus completionStatus, int iteration)
protected SystemException convertThrowableToSystemException(Throwable throwable, CompletionStatus completionStatus)
protected void handleAddressingDisposition(CorbaMessageMediator messageMediator, AddressingDispositionException ex)
public CorbaMessageMediator createResponse(CorbaMessageMediator messageMediator, ServiceContexts svc)
createResponse in interface CorbaProtocolHandlerpublic CorbaMessageMediator createUserExceptionResponse(CorbaMessageMediator messageMediator, ServiceContexts svc)
createUserExceptionResponse in interface CorbaProtocolHandlerpublic CorbaMessageMediator createUnknownExceptionResponse(CorbaMessageMediator messageMediator, UnknownException ex)
createUnknownExceptionResponse in interface CorbaProtocolHandlerpublic CorbaMessageMediator createSystemExceptionResponse(CorbaMessageMediator messageMediator, SystemException ex, ServiceContexts svc)
createSystemExceptionResponse in interface CorbaProtocolHandlerpublic CorbaMessageMediator createLocationForward(CorbaMessageMediator messageMediator, IOR ior, ServiceContexts svc)
createLocationForward in interface CorbaProtocolHandlerprotected CorbaMessageMediator createResponseHelper(CorbaMessageMediator messageMediator, ServiceContexts svc)
protected CorbaMessageMediator createResponseHelper(CorbaMessageMediator messageMediator, ServiceContexts svc, boolean user)
protected CorbaMessageMediator createResponseHelper(CorbaMessageMediator messageMediator, ReplyMessage reply, IOR ior)
protected void runServantPostInvoke(CorbaMessageMediator messageMediator)
protected void runInterceptors(CorbaMessageMediator messageMediator, ReplyMessage reply)
protected void runRemoveThreadInfo(CorbaMessageMediator messageMediator)
protected ServiceContexts getServiceContextsForReply(CorbaMessageMediator messageMediator, ServiceContexts contexts)
Copyright © 2018 JBoss by Red Hat. All rights reserved.