com.HTTPPart methods

Methods for the com.HTTPPart class.

Table 1. Class methods of com.HTTPPart
Name Description
CreateAttachment(
   filename STRING )
  RETURNS com.HTTPPart
Creates a new HTTPPart object based on a given file name located on disk.
CreateFromData(
   b BYTE )
  RETURNS com.HTTPPart
Creates a new HTTPPart object based on given BYTE located in memory.
CreateFromDomDocument(
   doc xml.DomDocument )
  RETURNS com.HTTPPart
Creates a new HTTPPart object based on given XML document.
CreateFromString(
   str STRING )
  RETURNS com.HTTPPart
Creates a new HTTPPart object based on given string.
Table 2. Object methods of com.HTTPPart
Name Description
clearHeaders()
Remove all headers from the HTTP part.
getAttachment()
  RETURNS STRING
Returns the absolute path to the HTTP part.
getContentAsData(
   b BYTE )
Returns the HTTP part as a BYTE.
getContentAsDomDocument()
  RETURNS xml.DomDocument
Returns the HTTP part as an XML document.
getHeader(
   name STRING )
  RETURNS STRING
Setter to handle HTTP multipart headers.
getContentAsString()
  RETURNS STRING
Returns the HTTP part as a string.
removeHeader(
   name STRING )
Remove the header of given name from the current HTTPPart object.
setHeader(
   name STRING,
   value STRING )
Setter to handle HTTP multipart headers.