net.fortytwo.linkeddata.dereferencers
Class FileURIDereferencer

java.lang.Object
  extended by net.fortytwo.linkeddata.dereferencers.FileURIDereferencer
All Implemented Interfaces:
Dereferencer

public class FileURIDereferencer
extends Object
implements Dereferencer

Author:
Joshua Shinavier (http://fortytwo.net)

Constructor Summary
FileURIDereferencer()
           
 
Method Summary
 org.restlet.representation.Representation dereference(String uri)
           
static org.restlet.data.MediaType findMediaType(String uri)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileURIDereferencer

public FileURIDereferencer()
Method Detail

dereference

public org.restlet.representation.Representation dereference(String uri)
                                                      throws net.fortytwo.ripple.RippleException
Specified by:
dereference in interface Dereferencer
Parameters:
uri - a URI from which to fetch a document
Returns:
the retrieved HTTP representation
Throws:
net.fortytwo.ripple.RippleException - if dereferencing the URI fails for any reason

findMediaType

public static org.restlet.data.MediaType findMediaType(String uri)
                                                throws net.fortytwo.ripple.RippleException
Throws:
net.fortytwo.ripple.RippleException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2013. All Rights Reserved.