Class LiteralContentLoader

  • All Implemented Interfaces:
    ContentLoader

    public class LiteralContentLoader
    extends Object
    implements ContentLoader
    Returns the literal content of the input.
    Since:
    1.0.0
    • Constructor Detail

      • LiteralContentLoader

        public LiteralContentLoader()
    • Method Detail

      • loadContent

        public String loadContent​(String value)
        Specified by:
        loadContent in interface ContentLoader
        Parameters:
        value - The literal string that represents a resource that should be loaded.
        Returns:
        The content to load from a given string intended to be added to MockResponse.setBody(String).