Class Http4ErrorHandlerParams
- java.lang.Object
-
- jetbrains.buildServer.issueTracker.impl.Http4ErrorHandlerParams
-
- All Implemented Interfaces:
GeneralHttpErrorHandlerParams
public class Http4ErrorHandlerParams extends Object implements GeneralHttpErrorHandlerParams
Implementation ofGeneralHttpErrorHandlerfor 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 InputStreamgetContent()Returns content of GET responseintgetStatusCode()Returns status code of GET request.URLgetUrl()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:
getStatusCodein interfaceGeneralHttpErrorHandlerParams- Returns:
- status code or
zeroif there are no status
-
getUrl
@NotNull public URL getUrl()
Returns original request URL.- Specified by:
getUrlin interfaceGeneralHttpErrorHandlerParams- Returns:
- original request URL
-
getContent
@Nullable public InputStream getContent() throws IOException
Returns content of GET response- Specified by:
getContentin interfaceGeneralHttpErrorHandlerParams- Returns:
- content of GET response or
null - Throws:
IOException- if I/O error occurs
-
-