Interface GeneralHttpErrorHandlerParams
-
- All Known Implementing Classes:
Http4ErrorHandlerParams
public interface GeneralHttpErrorHandlerParams
Data from unsuccessful GET response.- Since:
- 2018.1
- Author:
- Mikhail Khorkov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getContent()
Returns content of GET responseint
getStatusCode()
Returns status code of GET request.URL
getUrl()
Returns original request URL.
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Returns status code of GET request.- Returns:
- status code or
zero
if 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
-
-