Interface GeneralHttpErrorHandlerParams
-
- All Known Implementing Classes:
Http4ErrorHandlerParams
public interface GeneralHttpErrorHandlerParamsData from unsuccessful GET response.- Since:
- 2018.1
- Author:
- Mikhail Khorkov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetContent()Returns content of GET responseintgetStatusCode()Returns status code of GET request.URLgetUrl()Returns original request URL.
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Returns status code of GET request.- Returns:
- status code or
zeroif there are no status
-
getUrl
@NotNull URL getUrl()
Returns original request URL.- Returns:
- original request URL
-
getContent
@Nullable InputStream getContent() throws IOException
Returns content of GET response- Returns:
- content of GET response or
null - Throws:
IOException- if I/O error occurs
-
-