|
Oracle Application Server Integration B2B Callouts Java API Reference 10g Release 2 (10.1.2) B14417-01 November 2004 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.tip.callout.CalloutMessage
This class represents a callout message object. If the message is a functional acknowledgment, then the message has to have a property functional_ack=true
Field Summary | |
protected java.lang.Object |
body_ |
static int |
BYTES |
static int |
STRING |
Constructor Summary | |
CalloutMessage() |
|
CalloutMessage(byte[] body) Instanciate object with byte array data |
|
CalloutMessage(java.lang.String body) Instanciate object with string data |
Method Summary | |
java.lang.Object |
getBody() get the body in the original form |
byte[] |
getBodyAsBytes() get the body of the message as byte array. |
java.io.InputStream |
getBodyAsInputStream() get the body of the message |
java.io.Reader |
getBodyAsReader() get the body of the message |
java.lang.String |
getBodyAsString() get the body of the message as String object |
java.lang.String |
getBodyAsString(java.lang.String enc) get the body of the message as String object. |
java.lang.String |
getParameter(java.lang.String name) Get a parameter. |
java.util.Enumeration |
getParameterNames() get an Enumeration of parameter names |
java.util.Properties |
getParameters() Get all parameters. |
int |
getType() get the type of body of the message |
void |
setBody(byte[] body) set the body of the message. |
void |
setBody(java.io.InputStream in) set the body of the message. |
void |
setBody(java.io.Reader reader) set the body of the message. |
void |
setBody(java.lang.String body) set the body of the message. |
void |
setParameter(java.lang.String name, java.lang.String value) Set a parameter for a message. |
void |
setParameters(java.util.Properties props) Set parameters for a message. |
void |
setType(int type) set the type of body of the message |
java.lang.String |
toString() converts MessageObject to String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object body_
public static final int STRING
public static final int BYTES
Constructor Detail |
public CalloutMessage()
public CalloutMessage(java.lang.String body)
public CalloutMessage(byte[] body)
Method Detail |
public void setType(int type)
public int getType()
public void setBody(byte[] body) throws CalloutDomainException
body
- body of the messageCalloutDomainException
public void setBody(java.lang.String body) throws CalloutDomainException
body
- body of the messageCalloutDomainException
public void setBody(java.io.InputStream in) throws CalloutDomainException
CalloutDomainException
public void setBody(java.io.Reader reader) throws CalloutDomainException
CalloutDomainException
public java.lang.Object getBody()
public java.lang.String getBodyAsString()
public java.lang.String getBodyAsString(java.lang.String enc) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public byte[] getBodyAsBytes()
public java.io.Reader getBodyAsReader()
public java.io.InputStream getBodyAsInputStream()
public java.lang.String getParameter(java.lang.String name)
public void setParameter(java.lang.String name, java.lang.String value) throws CalloutDomainException
Set a parameter for a message. This parameter can be transport or security related. If paramater has been set in the Transport object, this will override the setting set earlier.
CalloutDomainException
public java.util.Properties getParameters()
public void setParameters(java.util.Properties props) throws CalloutDomainException
Set parameters for a message. The parameters can be transport or security related. If a paramater has been set in the Transport object, this will override the setting in the Transport object.
CalloutDomainException
public java.util.Enumeration getParameterNames()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Application Server Integration B2B Callouts Java API Reference 10g Release 2 (10.1.2) B14417-01 November 2004 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |