Class Http4ErrorHandlerParams
- java.lang.Object
-
- jetbrains.buildServer.issueTracker.impl.Http4ErrorHandlerParams
-
- All Implemented Interfaces:
GeneralHttpErrorHandlerParams
public class Http4ErrorHandlerParams extends Object implements GeneralHttpErrorHandlerParams
Implementation ofGeneralHttpErrorHandler
for Apache HttpClient v4.- Since:
- 2018.1
- Author:
- Mikhail Khorkov
-
-
Constructor Summary
Constructors Constructor Description Http4ErrorHandlerParams(org.apache.http.client.methods.CloseableHttpResponse response, URL url)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
Http4ErrorHandlerParams
public Http4ErrorHandlerParams(@NotNull org.apache.http.client.methods.CloseableHttpResponse response, @NotNull URL url)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Returns status code of GET request.- Specified by:
getStatusCode
in interfaceGeneralHttpErrorHandlerParams
- Returns:
- status code or
zero
if there are no status
-
getUrl
@NotNull public URL getUrl()
Returns original request URL.- Specified by:
getUrl
in interfaceGeneralHttpErrorHandlerParams
- Returns:
- original request URL
-
getContent
@Nullable public InputStream getContent() throws IOException
Returns content of GET response- Specified by:
getContent
in interfaceGeneralHttpErrorHandlerParams
- Returns:
- content of GET response or
null
- Throws:
IOException
- if I/O error occurs
-
-