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 java.io.InputStream
getContent()
Returns content of GET responseint
getStatusCode()
Returns status code of GET request.java.net.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 java.net.URL getUrl()
Returns original request URL.- Returns:
- original request URL
-
getContent
@Nullable java.io.InputStream getContent() throws java.io.IOException
Returns content of GET response- Returns:
- content of GET response or
null
- Throws:
java.io.IOException
- if I/O error occurs
-
-