-
- All Implemented Interfaces:
public final class Http.Response
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerstatusprivate final Stringserverprivate final StringcontentTypeprivate final InputStreamcontentStream
-
Constructor Summary
Constructors Constructor Description Http.Response(Integer status, String server, String contentType, InputStream contentStream)
-
Method Summary
Modifier and Type Method Description final IntegergetStatus()final StringgetServer()final StringgetContentType()final InputStreamgetContentStream()final BooleanisOK()final BooleanhasContent()final BooleanhasContentType()final StringreadTextContent()final BooleancontentTypeIsText()final StringtextContent()-
-
Constructor Detail
-
Http.Response
Http.Response(Integer status, String server, String contentType, InputStream contentStream)
-
-
Method Detail
-
getContentType
final String getContentType()
-
getContentStream
final InputStream getContentStream()
-
hasContent
final Boolean hasContent()
-
hasContentType
final Boolean hasContentType()
-
readTextContent
final String readTextContent()
-
contentTypeIsText
final Boolean contentTypeIsText()
-
textContent
final String textContent()
-
-
-
-