|
||||||||||
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.war.internal.WarConnection
public class WarConnection
Url connection for war protocol handler.
Field Summary |
---|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
WarConnection(URL url,
Configuration config)
|
Method Summary | |
---|---|
protected static boolean |
checkJarIsLegal(String name)
verifies that the given jar name is not contained in the blacklist. |
void |
connect()
Does nothing. |
protected InputStream |
createBundle(InputStream inputStream,
Properties instructions,
String warUri)
Actually create the bundle based on the parsed instructions and the given stream |
protected InputStream |
createBundle(InputStream inputStream,
Properties instructions,
String warUri,
org.ops4j.pax.swissbox.bnd.OverwriteMode overwriteMode)
Actually create the bundle based on the parsed instructions and the given stream |
protected Configuration |
getConfiguration()
Getter. |
InputStream |
getInputStream()
Returns the input stream denoted by the url. |
protected Properties |
getInstructions()
Creates a set of default instructions. |
protected static String |
join(Collection<String> strings,
String delimiter)
Joins elements from a collection into a delimiter separated string. |
protected static List<String> |
toList(String separatedString,
String delimiter)
Splits a delimiter separated string into a list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WarConnection(URL url, Configuration config) throws MalformedURLException
MalformedURLException
AbstractConnection.AbstractConnection(URL, Configuration)
Method Detail |
---|
protected Properties getInstructions() throws MalformedURLException
MalformedURLException
AbstractConnection.getInstructions()
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
- in case of an exception during accessing the resourceURLConnection.getInputStream()
protected InputStream createBundle(InputStream inputStream, Properties instructions, String warUri) throws IOException
warUri
- instructions
-
IOException
protected InputStream createBundle(InputStream inputStream, Properties instructions, String warUri, org.ops4j.pax.swissbox.bnd.OverwriteMode overwriteMode) throws IOException
inputStream
- instructions
- warUri
- overwriteMode
-
IOException
BndUtils.createBundle
protected Configuration getConfiguration()
public void connect()
connect
in class URLConnection
protected static boolean checkJarIsLegal(String name)
name
- of the jar which needs verification
protected static List<String> toList(String separatedString, String delimiter)
separatedString
- string to be splitdelimiter
- delimiter
protected static String join(Collection<String> strings, String delimiter)
strings
- collection of ellementsdelimiter
- delimiter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |