Package com.volantis.shared.net.impl.url

Examples of com.volantis.shared.net.impl.url.URLContentManagerImpl


        //   Test Expectations
        // =====================================================================
        final URLContentManagerConfiguration config =
            new URLContentManagerConfiguration();
        config.setDefaultTimeout(Period.inSeconds(1));
        URLContentManager manager = new URLContentManagerImpl(config);
        URL url = serverMock.getURL("/blah.txt?foo");
        try {
            URLContent content = manager.getURLContent(url, null, null);
            content.getInputStream();
        } catch (InterruptedIOException e) {
            assertEquals("Request to '" + url.toExternalForm() +
                    "' timed out after 1000ms", e.getMessage());
        }
View Full Code Here

TOP

Related Classes of com.volantis.shared.net.impl.url.URLContentManagerImpl

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.