|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
org.ops4j.pax.url.classpath.internal.Connection
public class Connection
An URLConnection that supports classpath: protocol.
Syntax:
classpath:[//bundle_symbolic_name/]path_to_resource
where:
...
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL
The protocol name. |
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
Connection(java.net.URL url,
org.osgi.framework.BundleContext bundleContext)
Creates a new connection. |
Method Summary | |
---|---|
void |
connect()
Does nothing. |
java.io.InputStream |
getInputStream()
Returns the input stream denoted by the url. |
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 |
Field Detail |
---|
public static final java.lang.String PROTOCOL
Constructor Detail |
---|
public Connection(java.net.URL url, org.osgi.framework.BundleContext bundleContext) throws java.net.MalformedURLException
url
- the url; cannot be nullbundleContext
- the bundle context; cannot be null
java.net.MalformedURLException
- in case of a malformed urlMethod Detail |
---|
public void connect()
connect
in class java.net.URLConnection
URLConnection.connect()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
- in case of an exception during accessing the resourceURLConnection.getInputStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |