Class HttpFetchResponseBuilder
- java.lang.Object
-
- com.norconex.collector.http.fetch.HttpFetchResponseBuilder
-
public class HttpFetchResponseBuilder extends Object
Builder facilitating creation of an HTTP fetch response.- Since:
- 3.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description HttpFetchResponseBuilder()
HttpFetchResponseBuilder(IHttpFetchResponse r)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IHttpFetchResponse
create()
boolean
equals(Object other)
int
hashCode()
HttpFetchResponseBuilder
setCrawlState(CrawlState crawlState)
HttpFetchResponseBuilder
setException(Exception exception)
HttpFetchResponseBuilder
setReasonPhrase(String reasonPhrase)
HttpFetchResponseBuilder
setRedirectTarget(String targetURL)
HttpFetchResponseBuilder
setStatusCode(int statusCode)
HttpFetchResponseBuilder
setUserAgent(String userAgent)
String
toString()
static HttpFetchResponseBuilder
unsupported()
-
-
-
Constructor Detail
-
HttpFetchResponseBuilder
public HttpFetchResponseBuilder()
-
HttpFetchResponseBuilder
public HttpFetchResponseBuilder(IHttpFetchResponse r)
-
-
Method Detail
-
setUserAgent
public HttpFetchResponseBuilder setUserAgent(String userAgent)
-
setCrawlState
public HttpFetchResponseBuilder setCrawlState(CrawlState crawlState)
-
setStatusCode
public HttpFetchResponseBuilder setStatusCode(int statusCode)
-
setReasonPhrase
public HttpFetchResponseBuilder setReasonPhrase(String reasonPhrase)
-
setException
public HttpFetchResponseBuilder setException(Exception exception)
-
setRedirectTarget
public HttpFetchResponseBuilder setRedirectTarget(String targetURL)
-
create
public IHttpFetchResponse create()
-
unsupported
public static HttpFetchResponseBuilder unsupported()
-
-