Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setContentCache (1.53 sec)

  1. 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
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. 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.
         */
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. 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);
                }
            }
        }
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top