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

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

public class Connection
extends URLConnection

Accepts URLs like dir:/Users/tonit/devel/pax/testing/$anchor=com.foo.Boo dir:/Users/tonit/devel/pax/testing/$anchor=com.foo.Boo,Bundle-SymbolicName=HelloWorld dir:.$anchor=com.foo.Boo,Bundle-SymbolicName=HelloWorld And even * dir:mytest which uses the relative dir mytest (from current one) without an anchor. Why anchors ? Sometimes you don't know the real class folder. So you want to let the url handler discover it. for example: dir:org/ops4j/pax/Foo.class::

Since:
Dec 10, 2008
Author:
Toni Menzel (tonit)

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
Connection(URL url, Configuration config)
           
 
Method Summary
 void connect()
           
 InputStream getInputStream()
           
 
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(URL url,
                  Configuration config)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class URLConnection
Throws:
IOException

connect

public void connect()
             throws IOException
Specified by:
connect in class URLConnection
Throws:
IOException


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