Class StringDataSource

java.lang.Object
org.mule.soapkit.soap.server.support.StringDataSource
All Implemented Interfaces:
javax.activation.DataSource

public final class StringDataSource extends Object implements javax.activation.DataSource
  • Field Details

    • content

      protected String content
    • contentType

      protected org.mule.runtime.api.metadata.MediaType contentType
    • name

      protected String name
  • Constructor Details

    • StringDataSource

      public StringDataSource(String payload)
    • StringDataSource

      public StringDataSource(String payload, String name)
    • StringDataSource

      public StringDataSource(String content, String name, org.mule.runtime.api.metadata.MediaType contentType)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface javax.activation.DataSource
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface javax.activation.DataSource
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface javax.activation.DataSource
    • getName

      public String getName()
      Specified by:
      getName in interface javax.activation.DataSource