|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ws.sca.databinding.impl.DataBindingImplXML
com.ibm.websphere.sca.jms.data.impl.JMSDataBindingImplXML
public class JMSDataBindingImplXML
JMS Data Binding that converts between SDO and its String XML representation.
Field Summary | |
---|---|
static java.lang.String |
$sccsid
|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.ws.sca.databinding.impl.DataBindingImplXML |
---|
fieldDataObject |
Fields inherited from interface com.ibm.websphere.sca.jms.data.JMSDataBinding |
---|
ANY_MESSAGE, BASE_MESSAGE, BYTES_MESSAGE, MAP_MESSAGE, OBJECT_MESSAGE, STREAM_MESSAGE, TEXT_MESSAGE |
Fields inherited from interface commonj.connector.runtime.BindingContext |
---|
BINDING_COMMUNICATION, BINDING_COMMUNICATION_INBOUND, BINDING_COMMUNICATION_OUTBOUND, BINDING_CONFIGURATION, BINDING_INVOCATION, BINDING_INVOCATION_FAULT, BINDING_INVOCATION_REQUEST, BINDING_INVOCATION_RESPONSE, BINDING_NAME, BINDING_REGISTRY, BINDING_TYPE, BINDING_TYPE_EIS, BINDING_TYPE_HTTP, BINDING_TYPE_JMS, EXPECTED_TYPE, INTERACTION_SPEC |
Constructor Summary | |
---|---|
JMSDataBindingImplXML()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Check if two JMSDataBindingImplXML's are equal. |
commonj.sdo.DataObject |
getDataObject()
|
int |
getMessageType()
Return the Text Message type |
int |
hashCode()
Any instance of JMSDataBindingImplXML equals each other, so a constant value 31
is returned as hashCode |
boolean |
isBusinessException()
Queries the DataBinding to determine whether the received message contains a fault (carried within a BusinessException). |
boolean |
outputWrappedXML()
Used by the runtime to determine whether a doc-lit wrapped input type should be unwrapped before passing it to the data binding, and whether to doc-lit wrap the output type. |
void |
read(byte[] nativeBytes,
boolean isBusinessException)
|
void |
read(javax.jms.Message message)
Read the contents of the incoming JMS Message into a DataObject. |
void |
setBindingContext(java.util.Map bindingContext)
This method is used to set a BindingContext map into the data binding. |
void |
setBusinessException(boolean isBusinessException)
This method is called by the runtime if the outgoing message contains a BusinessException. |
void |
write(javax.jms.Message message)
Write the DataObject into an outgoing JMS Message. |
Methods inherited from class com.ibm.ws.sca.databinding.impl.DataBindingImplXML |
---|
getAsByteArray, getAsString, read, setDataObject, setEncoding, setFromByteArray, setFromString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface commonj.connector.runtime.DataBinding |
---|
setDataObject |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String $sccsid
Constructor Detail |
---|
public JMSDataBindingImplXML()
Method Detail |
---|
public boolean isBusinessException()
JMSDataBinding
isBusinessException
in interface JMSDataBinding
public void setBusinessException(boolean isBusinessException)
JMSDataBinding
setBusinessException
in interface JMSDataBinding
isBusinessException
- True or false, specified by the
caller.public int getMessageType()
getMessageType
in interface JMSDataBinding
JMSDataBinding.getMessageType()
public void read(javax.jms.Message message) throws javax.jms.JMSException
JMSDataBinding
getDataObject
method is called by the runtime. An implementation of this
method will process the payload of the incoming JMS message
and will parse the data into the appropriate DataObject,
created like this: BOFactory bof =
(BOFactory)ServiceManager.INSTANCE.locateService("com/ibm/websphere/bo/BOFactory");
sampleBO = bof.create("http://namespace", "BOName");
read
in interface JMSDataBinding
message
- The message whose payload is to be parsed.
javax.jms.JMSException
- Thrown if an error occurs
during reading of the message.JMSDataBinding.read(javax.jms.Message)
public void read(byte[] nativeBytes, boolean isBusinessException)
read
in interface com.ibm.wsspi.sca.jms.data.JMSDataBindingNativeBytes
public void write(javax.jms.Message message) throws javax.jms.JMSException
JMSDataBinding
setDataObject
method is called by the
runtime. The supplied message must be of the same type as
returned by getMessageType
. This method will
be the converse of the read
method, and will
serialize the contents of the DataObject the the wire format
in the JMS message.
write
in interface JMSDataBinding
message
- The message to be populated with the
serialized DataObject.
javax.jms.JMSException
- Thrown if an error occurs
during writing of the message.JMSDataBinding.write(javax.jms.Message)
public commonj.sdo.DataObject getDataObject()
getDataObject
in interface commonj.connector.runtime.DataBinding
getDataObject
in class com.ibm.ws.sca.databinding.impl.DataBindingImplXML
com.ibm.websphere.eis.DataBinding#getDataObject()
public void setBindingContext(java.util.Map bindingContext)
setBindingContext
in interface commonj.connector.runtime.BindingContext
public boolean outputWrappedXML()
JMSDataBindingXML
outputWrappedXML
in interface JMSDataBindingXML
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
31
is returned as hashCode
hashCode
in class java.lang.Object
Object.hashCode()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |