Class HttpFetchClientResponse
- java.lang.Object
-
- com.norconex.collector.http.fetch.HttpFetchClientResponse
-
- All Implemented Interfaces:
IHttpFetchResponse
public class HttpFetchClientResponse extends Object implements IHttpFetchResponse
Hold HTTP response information obtained from fetching a document using HttpFetchClient.- Since:
- 3.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description HttpFetchClientResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResponse(IHttpFetchResponse resp, IHttpFetcher fetcher)booleanequals(Object other)CrawlStategetCrawlState()ExceptiongetException()StringgetReasonPhrase()StringgetRedirectTarget()List<IHttpFetchResponse>getResponses()intgetStatusCode()StringgetUserAgent()inthashCode()StringtoString()
-
-
-
Method Detail
-
addResponse
public void addResponse(IHttpFetchResponse resp, IHttpFetcher fetcher)
-
getCrawlState
public CrawlState getCrawlState()
- Specified by:
getCrawlStatein interfaceIHttpFetchResponse
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCodein interfaceIHttpFetchResponse
-
getReasonPhrase
public String getReasonPhrase()
- Specified by:
getReasonPhrasein interfaceIHttpFetchResponse
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgentin interfaceIHttpFetchResponse
-
getException
public Exception getException()
- Specified by:
getExceptionin interfaceIHttpFetchResponse
-
getRedirectTarget
public String getRedirectTarget()
- Specified by:
getRedirectTargetin interfaceIHttpFetchResponse
-
getResponses
public List<IHttpFetchResponse> getResponses()
-
-