com.bea.b2b.protocol.messaging
Class BusinessDocument

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.bea.b2b.protocol.messaging.XMLPart
              |
              +--com.bea.b2b.protocol.messaging.BusinessDocument
Direct Known Subclasses:
RNPart

public class BusinessDocument
extends com.bea.b2b.protocol.messaging.XMLPart
implements PayloadPart

The BusinessDocument class represents a business document, consisting of an XML document (XML DOM Document). A BusinessDocument is a payload part of a business message and is used to exchange XML documents between trading partners.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
BusinessDocument()
          Constructs a BusinessDocument.
BusinessDocument(org.w3c.dom.Document d)
          Constructs a BusinessDocument with the specified document part.
 
Method Summary
 java.lang.String getContentType()
          Gets the content type of this business document.
 org.w3c.dom.Document getDocument()
          Gets the XML document part of this business document.
 void read(java.io.InputStream in)
          Parses the DOM (default read).
 void setDocument(org.w3c.dom.Document d)
          Sets the XML document part of this business document.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessDocument

public BusinessDocument()
Constructs a BusinessDocument.

BusinessDocument

public BusinessDocument(org.w3c.dom.Document d)
Constructs a BusinessDocument with the specified document part.
Method Detail

getContentType

public java.lang.String getContentType()
Gets the content type of this business document.

Returns:
TYPE Content type.
Overrides:
getContentType in class com.bea.b2b.protocol.messaging.XMLPart

getDocument

public org.w3c.dom.Document getDocument()
Gets the XML document part of this business document.


setDocument

public void setDocument(org.w3c.dom.Document d)
Sets the XML document part of this business document.


read

public void read(java.io.InputStream in)
          throws java.io.IOException,
                 com.bea.b2b.transport.TransportException
Parses the DOM (default read).

Overrides:
read in class com.bea.b2b.protocol.messaging.XMLPart