Interface Content
- All Known Subinterfaces:
MultipartContent
- All Known Implementing Classes:
Batch,HttpContent,JsonBatch,JsonRequest,MixedContent,Request,StringContent
public interface Content
-
Method Summary
Modifier and TypeMethodDescriptiongetContent(boolean allHeaders) Get the String content for response.Get the list of error messages generating during parsing.Get the headers.booleanFlag indicating there were errors parsing the content.voidsetLogIndent(String logIndent) Sets the indentation of log messages.
-
Method Details
-
isParseFailed
boolean isParseFailed()Flag indicating there were errors parsing the content.- Returns:
- true if there were parse errors.
-
getErrors
Get the list of error messages generating during parsing.- Returns:
- A list of error messages generating during parsing.
-
setLogIndent
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
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
Get the headers. This will include the Content-Type header.- Returns:
- the headers.
-