org.ops4j.pax.url.mvn.internal
Class AetherBridgeConnection
java.lang.Object
java.net.URLConnection
org.ops4j.pax.url.mvn.internal.AetherBridgeConnection
public class AetherBridgeConnection
- extends URLConnection
Tries to resolve with Aether if installed. Othwise just uses the "old" one.
Small performance penalty of Aeather URL Handler is not installed. Should be settable by property though.
| Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
AetherBridgeConnection
public AetherBridgeConnection(URL url,
URLConnection fallback)
- Constructs a URL connection to the specified URL. A connection to
the object referenced by the URL is not created.
- Parameters:
url - the specified URL.fallback - Fallback connection if aether is not available.
connect
public void connect()
throws IOException
- Specified by:
connect in class URLConnection
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream in class URLConnection
- Throws:
IOException
Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.