|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
java.net.JarURLConnection
com.metamatrix.common.protocol.jar.JarURLConnection
public class JarURLConnection
Jar protocol connection class. The class extends the JDK provided JarURLConnection factory.
However Jar protocol can not understand the teiid specific protocols like mmfile, mmrofile etc.
The issue is if you can register application specific protocols during start-up
using system properties the bulit in JAR protocol understands those protocols.
However in the Teiid model this need to work by just dropping in in any
container. This handler will be called for any class loaders registered
with MetaMatrixURLStreamHandlerFactory
, so that they understand the application specific protocols.
Field Summary | |
---|---|
static java.net.URL |
DUMMY_URL
|
static java.lang.String |
PROTOCOL
|
Fields inherited from class java.net.JarURLConnection |
---|
jarFileURLConnection |
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
protected |
JarURLConnection(java.net.URL url)
|
Method Summary | |
---|---|
void |
connect()
|
java.util.jar.Attributes |
getAttributes()
|
java.security.cert.Certificate[] |
getCertificates()
|
int |
getContentLength()
|
java.lang.String |
getEntryName()
|
java.io.InputStream |
getInputStream()
|
java.util.jar.JarEntry |
getJarEntry()
|
java.util.jar.JarFile |
getJarFile()
|
java.net.URL |
getJarFileURL()
|
java.util.jar.Attributes |
getMainAttributes()
|
java.util.jar.Manifest |
getManifest()
|
Methods inherited from class java.net.URLConnection |
---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, 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 java.lang.String PROTOCOL
public static java.net.URL DUMMY_URL
Constructor Detail |
---|
protected JarURLConnection(java.net.URL url) throws java.net.MalformedURLException
url
-
java.net.MalformedURLException
Method Detail |
---|
public java.net.URL getJarFileURL()
getJarFileURL
in class java.net.JarURLConnection
JarURLConnection.getJarFileURL()
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
URLConnection.connect()
public java.util.jar.JarFile getJarFile() throws java.io.IOException
getJarFile
in class java.net.JarURLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
URLConnection.getInputStream()
public int getContentLength()
getContentLength
in class java.net.URLConnection
public java.util.jar.Attributes getAttributes() throws java.io.IOException
getAttributes
in class java.net.JarURLConnection
java.io.IOException
JarURLConnection.getAttributes()
public java.security.cert.Certificate[] getCertificates() throws java.io.IOException
getCertificates
in class java.net.JarURLConnection
java.io.IOException
JarURLConnection.getCertificates()
public java.lang.String getEntryName()
getEntryName
in class java.net.JarURLConnection
JarURLConnection.getEntryName()
public java.util.jar.JarEntry getJarEntry() throws java.io.IOException
getJarEntry
in class java.net.JarURLConnection
java.io.IOException
JarURLConnection.getJarEntry()
public java.util.jar.Attributes getMainAttributes() throws java.io.IOException
getMainAttributes
in class java.net.JarURLConnection
java.io.IOException
JarURLConnection.getMainAttributes()
public java.util.jar.Manifest getManifest() throws java.io.IOException
getManifest
in class java.net.JarURLConnection
java.io.IOException
JarURLConnection.getManifest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |