- Javax.xml.bind classes
- Home
- Binder
- DatatypeConverter
- JAXB
- JAXBContext
- JAXBElement
- JAXBElement.GlobalScope
- JAXBIntrospector
- Marshaller.Listener
- SchemaOutputResolver
- Unmarshaller.Listener
- Javax.xml.bind.util classes
- JAXBResult
- JAXBSource
- ValidationEventCollector
- Javax.xml.parsers classes
- DocumentBuilder
- DocumentBuilderFactory
- SAXParser
- SAXParserFactory
- Javax.xml.soap classes
- AttachmentPart
- MessageFactory
- MimeHeader
- MimeHeaders
- SAAJMetaFactory
- SOAPConnection
- SOAPConnectionFactory
- SOAPFactory
- SOAPMessage
- SOAPPart
- Javax.xml.validation classes
- Schema
- SchemaFactory
- TypeInfoProvider
- Validator
- ValidatorHandler
- Javax.xml.xpath classes
- XPathConstants
- XPathFactory
- Java Useful Resources
- Java - Quick Guide
- Java - Useful Resources
Javax.xml.soap.SOAPPart Class
Introduction
The javax.xml.soap.SOAPPart class is the container for the SOAP-specific portion of a SOAPMessage object.
Class declaration
Following is the declaration for javax.xml.soap.SOAPPart class:
public abstract class SOAPPart extends Object implements Document, Node
Class constructors
S.N. | Constructor & Description |
---|---|
1 | SOAPPart()
Single Constructor. |
Class methods
S.N. | Method & Description |
---|---|
1 |
abstract void addMimeHeader(String name, String value) This method creates a MimeHeader object with the specified name and value and adds it to this SOAPPart object. |
2 |
abstract Iterator getAllMimeHeaders() This method retrieves all the headers for this SOAPPart object as an iterator over the MimeHeader objects. |
3 |
abstract Source getContent() This method returns the content of the SOAPEnvelope as a JAXP Source object. |
4 |
String getContentId() This method retrieves the value of the MIME header whose name is "Content-Id". |
5 |
String getContentLocation() This method retrieves the value of the MIME header whose name is "Content-Location". |
6 |
abstract SOAPEnvelope getEnvelope() This method gets the SOAPEnvelope object associated with this SOAPPart object. |
7 |
abstract Iterator getMatchingMimeHeaders(String[] names) This method retrieves all MimeHeader objects that match a name in the given array. |
8 |
abstract String[] getMimeHeader(String name) This method gets all the values of the MimeHeader object in this SOAPPart object that is identified by the given String. |
9 |
abstract Iterator getNonMatchingMimeHeaders(String[] names) This method retrieves all MimeHeader objects whose name does not match a name in the given array. |
10 |
abstract void removeAllMimeHeaders() This method removes all the MimeHeader objects for this SOAPEnvelope object. |
11 |
abstract void removeMimeHeader(String header) This method removes all MIME headers that match the given name. |
12 |
abstract void setContent(Source source) This method sets the content of the SOAPEnvelope object with the data from the given Source object. |
13 |
void setContentId(String contentId) This method sets the value of the MIME header named "Content-Id" to the given String. |
14 |
void setContentLocation(String contentLocation) This method sets the value of the MIME header "Content-Location" to the given String. |
15 |
abstract void setMimeHeader(String name, String value) This method changes the first header entry that matches the given header name so that its value is the given value, adding a new header with the given name and value if no existing header is a match. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object
javax.xml.soap.Node