- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getResponseBody (0.14 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
} return cachedXPathAPI; } protected void storeChildUrls(final ResponseData responseData, final ResultData resultData) { try (final InputStream is = responseData.getResponseBody()) { final DOMParser parser = getDomParser(); parser.parse(new InputSource(is)); final Document document = parser.getDocument(); // base href
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/entity/ResponseData.java
httpStatusCode = statusCode; } public boolean hasResponseBody() { return responseBodyBytes != null || responseBodyFile != null; } public InputStream getResponseBody() { if (responseBodyBytes != null) { return new ByteArrayInputStream(responseBodyBytes); } if (responseBodyFile != null) { try {
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/thumbnail/impl/CommandGenerator.java
return process(thumbnailId, responseData -> { final File tempFile = ComponentUtil.getSystemHelper().createTempFile("thumbnail_", ""); try { CopyUtil.copy(responseData.getResponseBody(), tempFile); final String tempPath = tempFile.getAbsolutePath(); final String outputPath = outputFile.getAbsolutePath(); final List<String> cmdList = new ArrayList<>();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 9.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
logger.debug("Parsing SmbFile MIME Type: {}", filePath); } try (final InputStream is = responseData.getResponseBody()) { responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName())); } catch (final Exception e) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu May 23 01:54:36 UTC 2024 - 17.9K 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) -
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
protected void storeData(final ResponseData responseData, final ResultData resultData) { final DOMParser parser = getDomParser(); try (final BufferedInputStream bis = new BufferedInputStream(responseData.getResponseBody())) { final byte[] bomBytes = new byte[UTF8_BOM_SIZE]; bis.mark(UTF8_BOM_SIZE); final int size = bis.read(bomBytes); if (size < 3 || !isUtf8BomBytes(bomBytes)) {
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/transformer/impl/XmlTransformer.java
if (responseData == null || !responseData.hasResponseBody()) { throw new CrawlingAccessException("No response body."); } try (final InputStream is = responseData.getResponseBody()) { final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setFeature(Constants.FEATURE_SECURE_PROCESSING, true);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 17.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java
final Map<String, Object> dataMap = new HashMap<>(); final Map<String, Object> metaDataMap = new HashMap<>(); String content; try (final InputStream in = responseData.getResponseBody()) { final ExtractData extractData = getExtractData(extractor, in, createExtractParams(responseData, crawlingConfig)); content = extractData.getContent();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 23.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
writeContentType(response, responseData); writeNoCache(response, responseData); response.stream(out -> { try (final InputStream is = new BufferedInputStream(responseData.getResponseBody())) { out.write(is); } catch (final IOException e) { if (!(e.getCause() instanceof ClientAbortException)) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 40.2K bytes - Viewed (0)