org.apache.avalon.repository
Class BlockURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended byorg.apache.avalon.repository.AbstractURLConnection
          extended byorg.apache.avalon.repository.BlockURLConnection

public class BlockURLConnection
extends AbstractURLConnection

Repository URL protocol handler.


Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Method Summary
 Object getContent()
          Return the Artifact specified by this URL.
 
Methods inherited from class org.apache.avalon.repository.AbstractURLConnection
connect, getContent, getContent, getQueryField, getVersion
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getContent

public Object getContent()
                  throws IOException
Return the Artifact specified by this URL.

Returns:
the artifact instance
Throws:
IOException


Copyright © The Apache Software Foundation. All Rights Reserved.