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 void
addResponse(IHttpFetchResponse resp, IHttpFetcher fetcher)
boolean
equals(Object other)
CrawlState
getCrawlState()
Exception
getException()
String
getReasonPhrase()
String
getRedirectTarget()
List<IHttpFetchResponse>
getResponses()
int
getStatusCode()
String
getUserAgent()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
addResponse
public void addResponse(IHttpFetchResponse resp, IHttpFetcher fetcher)
-
getCrawlState
public CrawlState getCrawlState()
- Specified by:
getCrawlState
in interfaceIHttpFetchResponse
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode
in interfaceIHttpFetchResponse
-
getReasonPhrase
public String getReasonPhrase()
- Specified by:
getReasonPhrase
in interfaceIHttpFetchResponse
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgent
in interfaceIHttpFetchResponse
-
getException
public Exception getException()
- Specified by:
getException
in interfaceIHttpFetchResponse
-
getRedirectTarget
public String getRedirectTarget()
- Specified by:
getRedirectTarget
in interfaceIHttpFetchResponse
-
getResponses
public List<IHttpFetchResponse> getResponses()
-
-