public interface WsResponse
Modifier and Type | Method and Description |
---|---|
int |
code()
HTTP status code
|
String |
content() |
Reader |
contentReader() |
InputStream |
contentStream() |
String |
contentType() |
WsResponse |
failIfNotSuccessful()
Throws a
HttpException if isSuccessful() is false. |
boolean |
hasContent() |
boolean |
isSuccessful()
Returns true if the code is in [200..300), which means the request was
successfully received, understood, and accepted.
|
String |
requestUrl()
The absolute requested URL
|
String requestUrl()
int code()
boolean isSuccessful()
WsResponse failIfNotSuccessful()
HttpException
if isSuccessful()
is false.String contentType()
boolean hasContent()
InputStream contentStream()
Reader contentReader()
Copyright © 2009–2016 SonarSource. All rights reserved.