Payload

public class Payload implements Data

The Payload is a data object representing a payload in the SOAP message.

Author:Twinsen Tsang

Constructors

Payload

public Payload(String filePath, String contentType)

Explicit Constructor.

Parameters:
  • filePath – The payload filepath.
  • contentType – The content type of payload.

Payload

public Payload(InputStream inputStream, String contentType)
Parameters:
  • inputStream
  • contentType

Methods

getContentType

public String getContentType()
Returns:The content type of payload.

getFilePath

public String getFilePath()
Returns:The filepath of the payload.

getInputStream

public InputStream getInputStream()
Returns:The input stream of the payload

setFilePath

public void setFilePath(String filepath)

Set filepath of the payload. (This method is open to set the filename of payload for message receiver)

toString

public String toString()

toString method