public class PartnerRoleMessageExchangeImpl extends java.lang.Object implements PartnerRoleMessageExchange
MessageExchange.FailureType, MessageExchange.MessageExchangePattern, MessageExchange.Status
Modifier and Type | Field and Description |
---|---|
protected static Messages |
__msgs |
protected MessageExchangeDAO |
_dao |
protected BpelEngineImpl |
_engine |
protected EndpointReference |
_epr |
protected java.lang.Long |
_iid
Process-Instance identifier.
|
protected javax.wsdl.Operation |
_operation |
protected javax.wsdl.PortType |
_portType |
PROPERTY_SEP_MYROLE_SESSIONID, PROPERTY_SEP_PARTNERROLE_EPR, PROPERTY_SEP_PARTNERROLE_SESSIONID
Modifier | Constructor and Description |
---|---|
protected |
PartnerRoleMessageExchangeImpl(BpelEngineImpl engine,
MessageExchangeDAO dao,
javax.wsdl.PortType portType,
javax.wsdl.Operation operation,
EndpointReference epr,
EndpointReference myRoleEPR,
PartnerRoleChannel channel) |
Modifier and Type | Method and Description |
---|---|
Message |
createMessage(javax.xml.namespace.QName msgType)
Create a message associated with this exchange.
|
javax.xml.namespace.QName |
getCaller()
Get the identifier of the process that created this message exchange.
|
PartnerRoleChannel |
getChannel()
Get the communication channel.
|
MessageExchangeDAO |
getDAO() |
EndpointReference |
getEndpointReference()
Get a reference to the end-point targeted by this message exchange.
|
javax.xml.namespace.QName |
getFault()
Get the fault type.
|
java.lang.String |
getFaultExplanation() |
Message |
getFaultResponse()
Get the fault resposne message.
|
java.lang.String |
getMessageExchangeId()
Get the message exchange identifier.
|
MessageExchange.MessageExchangePattern |
getMessageExchangePattern()
Return the type of message-exchange that resulted form this invocation
(request only/request-respone).
|
EndpointReference |
getMyRoleEndpointReference()
Get the
EndpointReference associated with the my-role of the partner link to which this message
exchange belongs. |
javax.wsdl.Operation |
getOperation()
Get the operation description for this message exchange.
|
java.lang.String |
getOperationName()
Get the name of the operation (WSDL 1.1) / message exchange (WSDL 1.2?).
|
MessageExchange.MessageExchangePattern |
getPattern() |
javax.wsdl.PortType |
getPortType()
Get the port type description for this message exchange.
|
java.lang.String |
getProperty(java.lang.String key)
Get a message exchange property.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Get a set containing the names of the defined properties.
|
Message |
getRequest()
Get the request message.
|
Message |
getResponse()
Get the response message.
|
MessageExchange.Status |
getStatus()
Get the message exchange status.
|
int |
getSubscriberCount() |
boolean |
isTransactionPropagated() |
void |
release()
Should be called by the external partner when it's done with the
message exchange.
|
void |
reply(Message response)
Indicate that the partner has responded to the message exchange.
|
void |
replyAsync()
Indicate that the response to the request/response operation
is not yet available and that the response will be delivered
asynchronously.
|
void |
replyOneWayOk()
Indicate that the partner processed the one-way invocation successfully.
|
void |
replyWithFailure(MessageExchange.FailureType type,
java.lang.String description,
org.w3c.dom.Element details)
Indicate that the partner has failed to process the message exchange.
|
void |
replyWithFault(javax.xml.namespace.QName faultType,
Message outputFaultMessage)
Indicate that the partner faulted in processing the message exchange.
|
protected void |
responseReceived() |
void |
setEndpointReference(EndpointReference ref) |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set a message exchange property.
|
void |
setSubscriberCount(int subscriberCount) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createMessage, getEndpointReference, getFault, getFaultExplanation, getFaultResponse, getMessageExchangeId, getMessageExchangePattern, getOperation, getOperationName, getPortType, getProperty, getPropertyNames, getRequest, getResponse, getStatus, isTransactionPropagated, release, setProperty
protected static final Messages __msgs
protected java.lang.Long _iid
protected javax.wsdl.PortType _portType
protected javax.wsdl.Operation _operation
protected final BpelEngineImpl _engine
protected EndpointReference _epr
protected MessageExchangeDAO _dao
protected PartnerRoleMessageExchangeImpl(BpelEngineImpl engine, MessageExchangeDAO dao, javax.wsdl.PortType portType, javax.wsdl.Operation operation, EndpointReference epr, EndpointReference myRoleEPR, PartnerRoleChannel channel)
public void replyOneWayOk()
PartnerRoleMessageExchange
replyOneWayOk
in interface PartnerRoleMessageExchange
public void replyAsync()
PartnerRoleMessageExchange
replyAsync
in interface PartnerRoleMessageExchange
public void replyWithFault(javax.xml.namespace.QName faultType, Message outputFaultMessage) throws BpelEngineException
PartnerRoleMessageExchange
replyWithFault
in interface PartnerRoleMessageExchange
faultType
- fault typeoutputFaultMessage
- the input messageBpelEngineException
public void reply(Message response) throws BpelEngineException
PartnerRoleMessageExchange
reply
in interface PartnerRoleMessageExchange
response
- the response from the partnerBpelEngineException
public void replyWithFailure(MessageExchange.FailureType type, java.lang.String description, org.w3c.dom.Element details) throws BpelEngineException
PartnerRoleMessageExchange
replyWithFailure
in interface PartnerRoleMessageExchange
type
- type of failuredescription
- description of failureBpelEngineException
public javax.xml.namespace.QName getCaller()
PartnerRoleMessageExchange
getCaller
in interface PartnerRoleMessageExchange
public java.lang.String toString()
public PartnerRoleChannel getChannel()
PartnerRoleMessageExchange
getChannel
in interface PartnerRoleMessageExchange
public EndpointReference getMyRoleEndpointReference()
PartnerRoleMessageExchange
EndpointReference
associated with the my-role of the partner link to which this message
exchange belongs. This method is typically used to provide protocol-specific "callback" mechanisms.getMyRoleEndpointReference
in interface PartnerRoleMessageExchange
public java.lang.String getMessageExchangeId() throws BpelEngineException
MessageExchange
getMessageExchangeId
in interface MessageExchange
BpelEngineException
public java.lang.String getOperationName() throws BpelEngineException
MessageExchange
getOperationName
in interface MessageExchange
BpelEngineException
public MessageExchange.MessageExchangePattern getMessageExchangePattern()
MessageExchange
MessageExchange.MessageExchangePattern.REQUEST_RESPONSE
message-exchange was
created, then the caller should expect a response in the future.getMessageExchangePattern
in interface MessageExchange
public boolean isTransactionPropagated() throws BpelEngineException
isTransactionPropagated
in interface MessageExchange
BpelEngineException
public Message getResponse()
MessageExchange
getResponse
in interface MessageExchange
public javax.xml.namespace.QName getFault()
MessageExchange
getFault
in interface MessageExchange
null
if not available/applicable.public Message getFaultResponse()
MessageExchange
getFaultResponse
in interface MessageExchange
null
if not available/applicable.public java.lang.String getFaultExplanation()
getFaultExplanation
in interface MessageExchange
public MessageExchange.MessageExchangePattern getPattern()
public MessageExchange.Status getStatus()
MessageExchange
getStatus
in interface MessageExchange
public Message getRequest()
MessageExchange
getRequest
in interface MessageExchange
public javax.wsdl.Operation getOperation()
MessageExchange
getOperation
in interface MessageExchange
null
if not availblepublic javax.wsdl.PortType getPortType()
MessageExchange
getPortType
in interface MessageExchange
null
if not available.public MessageExchangeDAO getDAO()
public Message createMessage(javax.xml.namespace.QName msgType)
MessageExchange
createMessage
in interface MessageExchange
msgType
- message typeMessage
public void setEndpointReference(EndpointReference ref)
public EndpointReference getEndpointReference() throws BpelEngineException
MessageExchange
getEndpointReference
in interface MessageExchange
BpelEngineException
public java.lang.String getProperty(java.lang.String key)
MessageExchange
getProperty
in interface MessageExchange
key
- property keypublic void setProperty(java.lang.String key, java.lang.String value)
MessageExchange
setProperty
in interface MessageExchange
key
- property keyvalue
- property valuepublic java.util.Set<java.lang.String> getPropertyNames()
MessageExchange
getPropertyNames
in interface MessageExchange
public int getSubscriberCount()
public void setSubscriberCount(int subscriberCount)
public void release()
MessageExchange
release
in interface MessageExchange
protected void responseReceived()