org.eel.kitchen.jsonschema.uri
Class HTTPURIHandler

java.lang.Object
  extended by org.eel.kitchen.jsonschema.uri.HTTPURIHandler
All Implemented Interfaces:
URIHandler

public final class HTTPURIHandler
extends Object
implements URIHandler

Basic handler for the http URI scheme


Constructor Summary
HTTPURIHandler()
           
 
Method Summary
 JsonNode getDocument(URI uri)
          Get the JSON document located at a given URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPURIHandler

public HTTPURIHandler()
Method Detail

getDocument

public JsonNode getDocument(URI uri)
                     throws IOException
Description copied from interface: URIHandler
Get the JSON document located at a given URI

Specified by:
getDocument in interface URIHandler
Parameters:
uri - the URI
Returns:
the document at this URI
Throws:
IOException - the document could not be downloaded


Copyright © 2012. All Rights Reserved.