- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for setContentCache (0.41 seconds)
-
src/main/java/org/codelibs/curl/CurlResponse.java
return contentCache.getInputStream(); } /** * Sets the content cache for the response. * * @param contentCache the content cache to set. */ public void setContentCache(final ContentCache contentCache) { this.contentCache = contentCache; } /** * Gets the HTTP status code of the response. * * @return the HTTP status code. */
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 6.8K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods assertNotNull(response); } @Test
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
contentCache = new ContentCache(dfos.getData()); } else { contentCache = new ContentCache(dfos.getFile()); } response.setContentCache(contentCache); } catch (final Exception e) { response.setContentException(e); throw new CurlException("Failed to write a response.", e); } } }
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java
final CurlResponse response = new CurlResponse(); response.setHttpStatusCode(statusCode); response.setEncoding("UTF-8"); response.setContentCache(new ContentCache(body.getBytes(StandardCharsets.UTF_8))); return response; } private void setupMockFessConfig() { ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 58.6K bytes - Click Count (0)