Package org.jboss.vfs.protocol
Class AbstractURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.jboss.vfs.protocol.AbstractURLConnection
-
- Direct Known Subclasses:
FileURLConnection
public abstract class AbstractURLConnection extends URLConnection
Abstract base class for VFS URLConection impls.- Version:
- $Revision$
- Author:
- John Bailey
-
-
Field Summary
-
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractURLConnection(URL url)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetContentType()StringgetHeaderField(String name)protected abstract StringgetName()protected static URItoURI(URL url)-
Methods inherited from class java.net.URLConnection
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Constructor Detail
-
AbstractURLConnection
protected AbstractURLConnection(URL url)
-
-
Method Detail
-
getHeaderField
public String getHeaderField(String name)
- Overrides:
getHeaderFieldin classURLConnection
-
getContentType
public String getContentType()
- Overrides:
getContentTypein classURLConnection
-
toURI
protected static URI toURI(URL url) throws IOException
- Throws:
IOException
-
getName
protected abstract String getName()
-
-