Package net.sf.jpluck.http

Examples of net.sf.jpluck.http.HttpCache


    public HttpCache getHttpCache() {
        if (httpCache == null) {
            String dir = getCacheDirectory();
            if (dir.length() > 0) {
                httpCache = new HttpCache(dir + File.separator + "cache", getCacheExpiration());
            }
        }
        return httpCache;
    }
View Full Code Here


        CompactCacheAction() {
            super("Compact now");
        }

        public void actionPerformed(ActionEvent ev) {
            HttpCache httpCache = ClientConfiguration.getDefault().getHttpCache();
            if (httpCache != null) {
                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                httpCache.open();
                httpCache.shutdownCompact();
                setCursor(Cursor.getDefaultCursor());
            }
        }
View Full Code Here

TOP

Related Classes of net.sf.jpluck.http.HttpCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.