com.googlecode.fascinator.harvester.oaipmh.http
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by com.googlecode.fascinator.harvester.oaipmh.http.Handler

public class Handler
extends URLStreamHandler

Handler for HTTP URLs to support the Retry-After header when a 503 status code is received. Uses the Commons HttpClient library to do the actual HTTP request.

Author:
Oliver Lucido

Constructor Summary
Handler()
           
 
Method Summary
 URLConnection openConnection(URL url)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

openConnection

public URLConnection openConnection(URL url)
                             throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.