Class WarURLConnection
java.lang.Object
java.net.URLConnection
org.apache.catalina.webresources.war.WarURLConnection
URL connection for WAR resources that wraps a JAR URL connection.
-
Field Summary
Fields inherited from class URLConnection
allowUserInteraction, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWarURLConnection(URL url) Constructs a new WarURLConnection. -
Method Summary
Methods inherited from class URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Constructor Details
-
WarURLConnection
Constructs a new WarURLConnection.- Parameters:
url- The URL to connect to- Throws:
IOException- If an I/O error occurs
-
-
Method Details
-
connect
- Specified by:
connectin classURLConnection- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getPermission
- Overrides:
getPermissionin classURLConnection- Throws:
IOException
-
getLastModified
public long getLastModified()- Overrides:
getLastModifiedin classURLConnection
-
getContentLength
public int getContentLength()- Overrides:
getContentLengthin classURLConnection
-
getContentLengthLong
public long getContentLengthLong()- Overrides:
getContentLengthLongin classURLConnection
-