com.mulesoft.adapter.ra
Class XIMessageRecordImpl

java.lang.Object
  extended by com.mulesoft.adapter.ra.XIMessageRecordImpl
All Implemented Interfaces:
com.sap.aii.af.lib.ra.cci.XIMessageRecord, Serializable, Cloneable, javax.resource.cci.Record

public class XIMessageRecordImpl
extends Object
implements com.sap.aii.af.lib.ra.cci.XIMessageRecord

The XIMessageRecordImpl implements a CCI custom record that contains a XI message object

See Also:
Serialized Form

Constructor Summary
XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Message msg)
          Create a new CCI message record but store an existing reference to XI AF message for delegation.
XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Party fromParty, com.sap.engine.interfaces.messaging.api.Party toParty, com.sap.engine.interfaces.messaging.api.Service fromService, com.sap.engine.interfaces.messaging.api.Service toService, com.sap.engine.interfaces.messaging.api.Action action)
          Creates a new empty message record with only party, service, action and the message id header fields set.
XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Party fromParty, com.sap.engine.interfaces.messaging.api.Party toParty, com.sap.engine.interfaces.messaging.api.Service fromService, com.sap.engine.interfaces.messaging.api.Service toService, com.sap.engine.interfaces.messaging.api.Action action, String messageId)
          Creates a new empty message record with only party, service, action and the message id header fields set.
 
Method Summary
 Object clone()
          Redefine clone to resolve Record/Object ambiguity (ra implementation specific)
 String getRecordName()
          Returns the record name.
 String getRecordShortDescription()
          Sets the record description.
 com.sap.engine.interfaces.messaging.api.Message getXIMessage()
          Return the associated XI message object (XI specific)
 void setRecordName(String name)
          Sets the record name.
 void setRecordShortDescription(String recordShortDescription)
          Gets the record description.
 void setXIMessage(com.sap.engine.interfaces.messaging.api.Message message)
          Associate a new XI message object with this record (XI specific)
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Record
equals, hashCode
 

Constructor Detail

XIMessageRecordImpl

public XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Party fromParty,
                           com.sap.engine.interfaces.messaging.api.Party toParty,
                           com.sap.engine.interfaces.messaging.api.Service fromService,
                           com.sap.engine.interfaces.messaging.api.Service toService,
                           com.sap.engine.interfaces.messaging.api.Action action)
                    throws javax.resource.ResourceException
Creates a new empty message record with only party, service, action and the message id header fields set. If any of the parameters is null, an InvalidParamException will be thrown.

Parameters:
fromParty - the originating party
toParty - the destination party
fromService - the originating service
toService - the destination service
action - the action of the targeting process
actionNs - the namespace of the action
Throws:
javax.resource.ResourceException - if the message couldn't be created.

XIMessageRecordImpl

public XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Party fromParty,
                           com.sap.engine.interfaces.messaging.api.Party toParty,
                           com.sap.engine.interfaces.messaging.api.Service fromService,
                           com.sap.engine.interfaces.messaging.api.Service toService,
                           com.sap.engine.interfaces.messaging.api.Action action,
                           String messageId)
                    throws javax.resource.ResourceException
Creates a new empty message record with only party, service, action and the message id header fields set. If any of the parameters is null, an InvalidParamException will be thrown.

Parameters:
fromParty - the originating party
toParty - the destination party
fromService - the originating service
toService - the destination service
action - the action of the targeting process
actionNs - the namespace of the action
messageId - the Message ID.
Throws:
javax.resource.ResourceException - if the message couldn't be created.

XIMessageRecordImpl

public XIMessageRecordImpl(com.sap.engine.interfaces.messaging.api.Message msg)
Create a new CCI message record but store an existing reference to XI AF message for delegation. (XI AF CCI specific)

Method Detail

getRecordName

public String getRecordName()
Returns the record name. (CCI JCA 1.0)

Specified by:
getRecordName in interface javax.resource.cci.Record
See Also:
Record.getRecordName()

setRecordName

public void setRecordName(String name)
Sets the record name. However since this record is always a XI AF CciMessage record, it is ignored. (CCI JCA 1.0)

Specified by:
setRecordName in interface javax.resource.cci.Record
Parameters:
name - Not used

setRecordShortDescription

public void setRecordShortDescription(String recordShortDescription)
Gets the record description. (CCI JCA 1.0)

Specified by:
setRecordShortDescription in interface javax.resource.cci.Record
See Also:
Record.setRecordShortDescription(java.lang.String)

getRecordShortDescription

public String getRecordShortDescription()
Sets the record description. (CCI JCA 1.0)

Specified by:
getRecordShortDescription in interface javax.resource.cci.Record
See Also:
Record.getRecordShortDescription()

clone

public Object clone()
             throws CloneNotSupportedException
Redefine clone to resolve Record/Object ambiguity (ra implementation specific)

Specified by:
clone in interface javax.resource.cci.Record
Overrides:
clone in class Object
Returns:
Cloned XIMessageRecord
Throws:
CloneNotSupportedException

setXIMessage

public void setXIMessage(com.sap.engine.interfaces.messaging.api.Message message)
Associate a new XI message object with this record (XI specific)

Specified by:
setXIMessage in interface com.sap.aii.af.lib.ra.cci.XIMessageRecord
Parameters:
message - New XI message object

getXIMessage

public com.sap.engine.interfaces.messaging.api.Message getXIMessage()
Return the associated XI message object (XI specific)

Specified by:
getXIMessage in interface com.sap.aii.af.lib.ra.cci.XIMessageRecord
Returns:
XI message object


Copyright © 2012. All Rights Reserved.