org.ops4j.pax.url.wrap.internal
Class Connection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.ops4j.pax.url.wrap.internal.Connection

public class Connection
extends java.net.URLConnection

Url connection for wrap protocol handler.

Since:
September 09, 2007
Author:
Alin Dreghiciu

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
Connection(java.net.URL url, Configuration configuration)
          Creates a new connection.
 
Method Summary
 void connect()
          Does nothing.
 java.io.InputStream getInputStream()
          Returns an input stream for the bundle created from the jar.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection(java.net.URL url,
                  Configuration configuration)
           throws java.net.MalformedURLException
Creates a new connection.

Parameters:
url - the url; cannot be null.
configuration - service configuration; cannot be null
Throws:
java.net.MalformedURLException - in case of a malformed url
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream for the bundle created from the jar.

Overrides:
getInputStream in class java.net.URLConnection
Returns:
the input stream for the bundle created from the jar
Throws:
java.io.IOException - re-thrown from BndLib.createBundle
See Also:
BndUtils.createBundle(InputStream, Properties, String)

connect

public void connect()
Does nothing.

Specified by:
connect in class java.net.URLConnection


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.