All Known Subinterfaces:
MultipartContent
All Known Implementing Classes:
Batch, HttpContent, MixedContent, Request, StringContent

public interface Content
  • Method Details

    • isParseFailed

      boolean isParseFailed()
      Flag indicating there were errors parsing the content.
      Returns:
      true if there were parse errors.
    • getErrors

      List<String> getErrors()
      Get the list of error messages generating during parsing.
      Returns:
      A list of error messages generating during parsing.
    • setLogIndent

      void setLogIndent(String logIndent)
      Sets the indentation of log messages. Since Content can be nested, this makes debug output better readable.
      Parameters:
      logIndent - the indentation of log messages.
    • getContent

      String getContent(boolean allHeaders)
      Get the String content for response.
      Parameters:
      allHeaders - flag indicating all headers should be included. If the content is going to be added to a HttpServletResponse, the headers need to be set separately.
      Returns:
      The content.
    • getHeaders

      Map<String,List<String>> getHeaders()
      Get the headers. This will include the Content-Type header.
      Returns:
      the headers.