|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.soap.messaging.Message
A Message is the class whose instances represent one-way messages in SOAP. While messages are one-way, they are sometimes carried on two-way transports such as HTTP. To accomodate that, the API supported here has a "receive" method as well - that is only applicable if the transport that is being used supports the receive() method (@see org.apache.soap.transport.SOAPTransport) so that this API can get at the 'response' envelope.
| Constructor Summary | |
Message() | |
| Method Summary | |
void |
addBodyPart(MimeBodyPart part)Add a MIME BodyPart to the request MIME envelope. |
MimeBodyPart |
findBodyPart(java.lang.String uri)Find the MIME part referred to by the given URI in the response MIME envelope. |
MimeBodyPart |
getBodyPart(int index)Get the specified Part in the reponse MIME envelope by its index. |
int |
getPartCount()Return the number of enclosed BodyPart objects in the response MIME envelope. |
SOAPContext |
getRequestSOAPContext()Get the request SOAPContext. |
SOAPContext |
getResponseSOAPContext()Get the response SOAPContext. |
MimeBodyPart |
getRootPart()Get the root Part of the reponse MIME envelope, or the only part if the response wasn't multipart. |
SOAPTransport |
getSOAPTransport() |
DataHandler |
receive()Receive a response from the given transport. |
Envelope |
receiveEnvelope()Receive an envelope from the given transport. |
void |
send(java.net.URL url, java.lang.String actionURI, Envelope env)Send an envelope to the given URL via the SOAPTransport that has been configured for this instance (or SOAPHTTPConnection by default). |
void |
setSOAPTransport(SOAPTransport st) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Message()
| Method Detail |
public void setSOAPTransport(SOAPTransport st)
public SOAPTransport getSOAPTransport()
public void send(java.net.URL url,
java.lang.String actionURI,
Envelope env)
throws SOAPException
url - the url to send toactionURI - the value of the SOAPAction headerenv - envelope to sendSOAPException - if something goes wrong.
public Envelope receiveEnvelope()
throws SOAPException
SOAPException - if something goes wrongreceive()
public DataHandler receive()
throws SOAPException,
MessagingException
SOAPException - if something goes wrongMessagingExceptionreceive()public SOAPContext getRequestSOAPContext()
public void addBodyPart(MimeBodyPart part)
throws MessagingException
part - The Part to be appendedMessagingExceptionpublic SOAPContext getResponseSOAPContext()
public MimeBodyPart findBodyPart(java.lang.String uri)
Note: relative URIs not entirely implemented yet.
uri - the URI
public int getPartCount()
throws MessagingException
MessagingException
public MimeBodyPart getBodyPart(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the desired Partjava.lang.IndexOutOfBoundsException - if no such Part exists
public MimeBodyPart getRootPart()
throws MessagingException
MessagingException
|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||