org.apache.avalon.repository
Class ArtifactURLConnection
java.lang.Object
java.net.URLConnection
org.apache.avalon.repository.AbstractURLConnection
org.apache.avalon.repository.ArtifactURLConnection
- public class ArtifactURLConnection
- extends AbstractURLConnection
Repository URL protocol handler.
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
getContent
public Object getContent()
throws IOException
- Return the Artifact specified by this URL.
- Returns:
- the artifact instance
- Throws:
IOException
getContent
protected Object getContent(String defaultType)
throws IOException
- Return the Artifact specified by this URL.
- Overrides:
getContent
in class AbstractURLConnection
- Parameters:
defaultType
- the artifact type (e.g. "jar", "block", "xml", etc.)
- Returns:
- the artifact instance
- Throws:
IOException
- See Also:
Artifact
Copyright © The Apache Software Foundation. All Rights Reserved.