org.apache.avalon.repository
Class BlockHandler

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

public class BlockHandler
extends URLStreamHandler

Repository URL protocol handler.


Constructor Summary
BlockHandler()
           
 
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

BlockHandler

public BlockHandler()
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.