- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for ResponseData (0.08 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java
import java.util.Set; import org.codelibs.core.exception.IORuntimeException; import org.codelibs.core.io.FileUtil; import org.codelibs.fess.crawler.Constants; /** * @author shinsuke * */ public class ResponseData implements Closeable { private String url; private int httpStatusCode; private String charSet; private long contentLength; private String mimeType;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 5.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java
protected Map<String, String> metaContentMapping; protected FessConfig fessConfig; protected abstract Extractor getExtractor(ResponseData responseData); @Override public ResultData transform(final ResponseData responseData) { if (responseData == null || !responseData.hasResponseBody()) { throw new CrawlingAccessException("No response body."); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 23.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
@Override public ResultData transform(final ResponseData responseData) { if (responseData == null || !responseData.hasResponseBody()) { throw new CrawlingAccessException("No response body."); } // encoding updateCharset(responseData); final ResultData resultData = new ResultData();
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Oct 24 12:16:00 UTC 2024 - 19.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java
ResponseData responseData = null; try { // head method responseData = client.execute(RequestDataBuilder.newRequestData().head().url(urlQueue.getUrl()).build()); if (responseData != null && responseData.getLastModified() != null && responseData.getLastModified().getTime() <= urlQueue.getLastModified().longValue()
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 15.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
final Document document) { // canonical final String canonicalUrl = getCanonicalUrl(responseData, document); if (canonicalUrl != null && !canonicalUrl.equalsIgnoreCase(responseData.getUrl()) && isValidUrl(canonicalUrl) && isValidCanonicalUrl(responseData.getUrl(), canonicalUrl)) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Oct 24 13:01:38 UTC 2024 - 42.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java
* @see org.codelibs.fess.crawler.rule.impl.AbstractRule#match(org.codelibs.fess.crawler.entity.ResponseData) */ @Override public boolean match(final ResponseData responseData) { if (defaultRule) { return true; } final Map<String, Object> map = new HashMap<>(); BeanUtil.copyBeanToMap(responseData, map, CopyOptions::excludeWhitespace);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 3.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
} } } protected ResponseData getResponseData(final String uri, final boolean includeContent) { final ResponseData responseData = new ResponseData(); FTPClient client = null; try { responseData.setMethod(Constants.GET_METHOD); final FtpInfo ftpInfo = new FtpInfo(uri); responseData.setUrl(ftpInfo.toUrl());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 25.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
final ResponseData responseData = client.execute(RequestDataBuilder.newRequestData().get().url(url).build()); if (responseData.getHttpStatusCode() == 404) { response.httpStatus(responseData.getHttpStatusCode()); CloseableUtil.closeQuietly(responseData); return response; } writeFileName(response, responseData);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 40.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java
} ResponseData responseData = new ResponseData(); responseData.setCharSet("UTF-8"); responseData.setContentLength(data.length()); responseData.setExecutionTime(1000L); responseData.setHttpStatusCode(200); responseData.setLastModified(new Date()); responseData.setMethod("GET");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Oct 24 13:01:38 UTC 2024 - 41.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java
@Override protected void storeData(final ResponseData responseData, final ResultData resultData) { final DOMParser parser = getDomParser(); try (final InputStream in = responseData.getResponseBody()) { final InputSource is = new InputSource(in); if (responseData.getCharSet() != null) { is.setEncoding(responseData.getCharSet()); } parser.parse(is);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 8.8K bytes - Viewed (0)