org.apache.avalon.repository
Class ArtifactHandler

java.lang.Object
  extended byjava.net.URLStreamHandler
      extended byorg.apache.avalon.repository.ArtifactHandler

public class ArtifactHandler
extends URLStreamHandler

Repository URL protocol handler.


Constructor Summary
ArtifactHandler()
           
 
Method Summary
protected  int getDefaultPort()
           
protected  URLConnection openConnection(URL url)
          Opens a connection to the specified URL.
protected  String toExternalForm(URL url)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactHandler

public ArtifactHandler()
Method Detail

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Opens a connection to the specified URL.

Parameters:
url - A URL to open a connection to.
Returns:
The established connection.
Throws:
IOException - If a connection failure occurs.

getDefaultPort

protected int getDefaultPort()

toExternalForm

protected String toExternalForm(URL url)


Copyright © The Apache Software Foundation. All Rights Reserved.