Class StringSource

java.lang.Object
javax.xml.transform.stream.StreamSource
org.citrusframework.xml.StringSource
All Implemented Interfaces:
Source

public class StringSource extends StreamSource
A simple JAXB stream source representation of a static String content. Can be read many times and uses default encoding set via Citrus settings.
Author:
Christoph Deppisch
  • Constructor Details

    • StringSource

      public StringSource(String content)
      Constructor using source content as String.
      Parameters:
      content - the content
    • StringSource

      public StringSource(String content, String encoding)
      Constructor using source content as String and encoding.
      Parameters:
      content - the content
  • Method Details