Package org.apache.commons.vfs2.provider
Class DefaultURLConnection
java.lang.Object
java.net.URLConnection
org.apache.commons.vfs2.provider.DefaultURLConnection
A default URL connection that will work for most file systems.
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultURLConnection
(URL url, FileContent fileContent) Constructs a new instance. -
Method Summary
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Constructor Details
-
DefaultURLConnection
Constructs a new instance.- Parameters:
url
- The URL to connect.fileContent
- The URL fileContent.
-
-
Method Details
-
connect
- Specified by:
connect
in classURLConnection
-
getContentEncoding
- Overrides:
getContentEncoding
in classURLConnection
-
getContentLength
- Overrides:
getContentLength
in classURLConnection
-
getContentType
- Overrides:
getContentType
in classURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
- Throws:
IOException
-
getLastModified
- Overrides:
getLastModified
in classURLConnection
-
getOutputStream
- Overrides:
getOutputStream
in classURLConnection
- Throws:
IOException
-