|
||||||||||
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(java.net.URL url,
Configuration config)
|
Method Summary | |
---|---|
void |
connect()
Does nothing. |
protected Configuration |
getConfiguration()
Getter. |
java.io.InputStream |
getInputStream()
Returns the input stream denoted by the url. |
protected java.util.Properties |
getInstructions()
Creates a set of default instructions. |
protected static java.lang.String |
join(java.util.Collection<java.lang.String> strings,
java.lang.String delimiter)
Joins elements from a collection into a delimiter separated string. |
protected static java.util.List<java.lang.String> |
toList(java.lang.String separatedString,
java.lang.String delimiter)
Splits a delimiter separated string into a list. |
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 |
---|
public WarConnection(java.net.URL url, Configuration config) throws java.net.MalformedURLException
java.net.MalformedURLException
AbstractConnection.AbstractConnection(URL, Configuration)
Method Detail |
---|
protected java.util.Properties getInstructions() throws java.net.MalformedURLException
java.net.MalformedURLException
AbstractConnection.getInstructions()
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()
protected Configuration getConfiguration()
public void connect()
connect
in class java.net.URLConnection
protected static java.util.List<java.lang.String> toList(java.lang.String separatedString, java.lang.String delimiter)
separatedString
- string to be splitdelimiter
- delimiter
protected static java.lang.String join(java.util.Collection<java.lang.String> strings, java.lang.String delimiter)
strings
- collection of ellementsdelimiter
- delimiter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |