Code example for CacheRequest

Methods: getBody

0
    // exists 
    private void putToCache() throws IOException { 
        if (useCaches && null != responseCache) {
            cacheRequest = responseCache.put(uri, this);
            if (null != cacheRequest) {
                cacheOut = cacheRequest.getBody();
            } 
        } 
    } 
 
    /** 
     * Closes the connection with the HTTP server 
     * 
     * 
     * @see URLConnection#connect() 
     */ 
    @Override 
    public void disconnect() { 
        disconnect(true); 
    }