Interface Content
-
- All Known Subinterfaces:
MultipartContent
- All Known Implementing Classes:
Batch,HttpContent,JsonBatch,JsonRequest,MixedContent,Request,StringContent
public interface Content
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContent(boolean allHeaders)Get the String content for response.List<String>getErrors()Get the list of error messages generating during parsing.Map<String,String>getHeaders()Get the headers.booleanisParseFailed()Flag indicating there were errors parsing the content.voidsetLogIndent(String logIndent)Sets the indentation of log messages.
-
-
-
Method Detail
-
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.
-
-