Class Http4ErrorHandlerParams
- java.lang.Object
-
- jetbrains.buildServer.issueTracker.impl.Http4ErrorHandlerParams
-
- All Implemented Interfaces:
GeneralHttpErrorHandlerParams
public class Http4ErrorHandlerParams extends java.lang.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, java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete 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
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 java.net.URL getUrl()
Returns original request URL.- Specified by:
getUrl
in interfaceGeneralHttpErrorHandlerParams
- Returns:
- original request URL
-
getContent
@Nullable public java.io.InputStream getContent() throws java.io.IOException
Returns content of GET response- Specified by:
getContent
in interfaceGeneralHttpErrorHandlerParams
- Returns:
- content of GET response or
null
- Throws:
java.io.IOException
- if I/O error occurs
-
-