|
Oracle Fusion Middleware B2B Callout Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10682-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.tip.b2b.callout.CalloutMessage
public class 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)
int
- can be either CalloutMessage.STRING or CalloutMessage.BYTESpublic int getType()
public void setBody(byte[] body) throws B2BDomainException
body
- body of the messageB2BDomainException
public void setBody(java.lang.String body) throws B2BDomainException
body
- body of the messageB2BDomainException
public void setBody(java.io.InputStream in) throws B2BDomainException
a
- InputStream that contains the messageB2BDomainException
public void setBody(java.io.Reader reader) throws B2BDomainException
a
- reader that can be used to read the messageB2BDomainException
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 B2BDomainException
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.
B2BDomainException
public java.util.Properties getParameters()
public void setParameters(java.util.Properties props) throws B2BDomainException
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.
B2BDomainException
public java.util.Enumeration getParameterNames()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware B2B Callout Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10682-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |