org.ops4j.pax.url.wrap.internal
Class Connection
java.lang.Object
java.net.URLConnection
org.ops4j.pax.url.wrap.internal.Connection
public class Connection
- extends URLConnection
Url connection for wrap protocol handler.
- Since:
- September 09, 2007
- Author:
- Alin Dreghiciu
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 |
Connection
public Connection(URL url,
Configuration configuration)
throws MalformedURLException
- Creates a new connection.
- Parameters:
url
- the url; cannot be null.configuration
- service configuration; cannot be null
- Throws:
MalformedURLException
- in case of a malformed url
getInputStream
public InputStream getInputStream()
throws IOException
- Returns an input stream for the bundle created from the jar.
- Overrides:
getInputStream
in class URLConnection
- Returns:
- the input stream for the bundle created from the jar
- Throws:
IOException
- re-thrown from BndLib.createBundle- See Also:
BndUtils.createBundle(InputStream, Properties, String)
connect
public void connect()
- Does nothing.
- Specified by:
connect
in class URLConnection
Copyright © 2006-2013 OPS4J - Open Participation Software for Java. All Rights Reserved.