Package si.mazi.rescu.serialization
Class PlainTextResponseReader
java.lang.Object
si.mazi.rescu.ResponseReader
si.mazi.rescu.serialization.PlainTextResponseReader
public class PlainTextResponseReader extends ResponseReader
Returns the response body as a string.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlainTextResponseReader(boolean ignoreHttpErrorCodes) -
Method Summary
Modifier and Type Method Description Stringread(String httpBody, Type returnType)protected RuntimeExceptionreadException(String httpBody, Class<? extends RuntimeException> exceptionType)
-
Constructor Details
-
PlainTextResponseReader
public PlainTextResponseReader(boolean ignoreHttpErrorCodes)
-
-
Method Details
-
read
- Specified by:
readin classResponseReader- Throws:
IOException
-
readException
protected RuntimeException readException(String httpBody, Class<? extends RuntimeException> exceptionType) throws IOException- Specified by:
readExceptionin classResponseReader- Throws:
IOException
-