HTTP classes / The HTTPPart class |
Methods for the com.HTTPPart class.
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. |
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. |