com.HTTPPart methods

Methods for the com.HTTPPart class.

Table 1. Class methods of com.HTTPPart
Name Description
CreateFromString(
   s STRING)
  RETURNING part-object com.HTTPPart
Creates a new HTTPPart object based on given string.
CreateFromDomDocument(
   x xml.DomDocument)
  RETURNING part-object com.HTTPPart
Creates a new HTTPPart object based on given XML document.
CreateFromData(
   b BYTE)
  RETURNING part-object com.HTTPPart
Creates a new HTTPPart object based on given BYTE located in memory.
CreateAttachment(
   filename STRING)
  RETURNING part-object com.HTTPPart
Creates a new HTTPPart object based on given filename located on disk.
Table 2. Object methods of com.HTTPPart
Name Description
getContentAsString()
  RETURNING str STRING
Returns the HTTP part as a string.
getContentAsDomDocument()
  RETURNING domDocument xml.DomDocument
Returns the HTTP part as a XML document.
getContentAsData(
   b BYTE )
Returns the HTTP part as a BYTE.
getAttachment()
  RETURNING filename STRING
Returns the temporary filename located on disk of the HTTP part.
setHeader(
   name STRING,
   value STRING)
Setter to handle HTTP multipart headers.
getHeader(
   name STRING )
  RETURNING value STRING
Setter to handle HTTP multipart headers.