|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.net.URLConnection
com.springsource.util.io.JarTransformingURLConnection
public final class JarTransformingURLConnection
Implementation of URLConnection that transforms JAR files as they are read.
URL is used to source the real connection for the JAR data, and a JarTransformer is used to
customize the exact transformations being performed.
JarTransformer| Field Summary | |
|---|---|
private boolean |
ensureManifestIsPresent
|
private JarTransformer |
transformer
|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
JarTransformingURLConnection(java.net.URL url,
JarTransformer transformer)
Creates a new JarTransformingURLConnection that will provide content from the JAR identified by
url transformed by transformer. |
|
JarTransformingURLConnection(java.net.URL url,
JarTransformer transformer,
boolean ensureManifestIsPresent)
Creates a new JarTransformingURLConnection that will provide content from the JAR identified by
url transformed by transformer and that will optionally ensure that a manifest is
provided, creating one if necessary. |
|
| Method Summary | |
|---|---|
void |
connect()
|
java.io.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 |
| Field Detail |
|---|
private final JarTransformer transformer
private final boolean ensureManifestIsPresent
| Constructor Detail |
|---|
public JarTransformingURLConnection(java.net.URL url,
JarTransformer transformer)
JarTransformingURLConnection that will provide content from the JAR identified by
url transformed by transformer.
url - the URL of the JAR file.transformer - the JarTransformer to apply as content is being read.
public JarTransformingURLConnection(java.net.URL url,
JarTransformer transformer,
boolean ensureManifestIsPresent)
JarTransformingURLConnection that will provide content from the JAR identified by
url transformed by transformer and that will optionally ensure that a manifest is
provided, creating one if necessary.
url - the URL of the JAR file.transformer - the JarTransformer to apply as content is being read.ensureManifestIsPresent - true if the presence of a MANIFEST.MF should be ensured.| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOException
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||