|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.SOAPMessageUtils
public class SOAPMessageUtils
Utilities to work with SOAPMessage.
Note: These utilities could have been in XMLUtils as well, but to prevent non SOAP users from depending on saaj-api.jar, mail.jar and activation.jar, these utility functions have been separated out.
Nested Class Summary | |
---|---|
static class |
SOAPMessageUtils.ByteArrayDataSource |
Constructor Summary | |
---|---|
SOAPMessageUtils() |
Method Summary | |
---|---|
static org.w3c.dom.Element |
addChildElementWithBinaryContent(org.w3c.dom.Element parent, java.lang.String localName, java.lang.String prefix, java.lang.String uri, byte[] value, boolean useLineBreaks) MTOM aware method to create a child Element under the parent Element with the specified prefix, localname and uri, and create a text node under the child element containing the byte array as a base 64 encoded string. |
static java.io.InputStream |
getBinaryContentForChildElement(org.w3c.dom.Element elem) |
static javax.xml.soap.MimeHeaders |
readHeaders(java.io.InputStream is) Read the Mime headers and position the InputStrea to just after the headers |
static void |
writeTo(javax.xml.soap.SOAPMessage msg, java.io.OutputStream out) Wrapper over SOAPMessage.writeTo(OutputStream) to write out the headers as well as the body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOAPMessageUtils()
Method Detail |
---|
public static org.w3c.dom.Element addChildElementWithBinaryContent(org.w3c.dom.Element parent, java.lang.String localName, java.lang.String prefix, java.lang.String uri, byte[] value, boolean useLineBreaks) throws org.w3c.dom.DOMException
parent
-localName
-prefix
-uri
-value
-org.w3c.dom.DOMException
public static java.io.InputStream getBinaryContentForChildElement(org.w3c.dom.Element elem)
public static void writeTo(javax.xml.soap.SOAPMessage msg, java.io.OutputStream out) throws java.io.IOException, javax.xml.soap.SOAPException
SOAPMessage.writeTo(OutputStream)
to write out the headers as well as the body.msg
- The SOAPMessage that needs to be written outout
- where it is to be writtenjava.io.IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.MimeHeaders readHeaders(java.io.InputStream is) throws java.io.IOException
is
-java.io.IOException
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |