Class AGDownloadHandler

java.lang.Object
com.franz.agraph.http.handler.AGResponseHandler
com.franz.agraph.http.handler.AGDownloadHandler

public class AGDownloadHandler extends AGResponseHandler
A response handler that writes the returned body to a file.
  • Constructor Details

    • AGDownloadHandler

      public AGDownloadHandler(File file, String mimeType)
      Creates a download handler.
      Parameters:
      file - Output path.
      mimeType - MIME type to be requested from the server.
    • AGDownloadHandler

      public AGDownloadHandler(String file, String mimeType)
      Creates a download handler.
      Parameters:
      file - Output path.
      mimeType - MIME type to be requested from the server.
    • AGDownloadHandler

      public AGDownloadHandler(File file)
      Creates a download handler that does not specify the MIME type.

      The server is free to return any content type.

      Parameters:
      file - Output path.
    • AGDownloadHandler

      public AGDownloadHandler(String file)
      Creates a download handler that does not specify the MIME type.

      The server is free to return any content type.

      Parameters:
      file - Output path.
    • AGDownloadHandler

      public AGDownloadHandler(File file, org.eclipse.rdf4j.rio.RDFFormat format)
      Creates a download handler that requests results in specified RDF format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
    • AGDownloadHandler

      public AGDownloadHandler(String file, org.eclipse.rdf4j.rio.RDFFormat format)
      Creates a download handler that requests results in specified RDF format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
    • AGDownloadHandler

      public AGDownloadHandler(File file, org.eclipse.rdf4j.query.resultio.TupleQueryResultFormat format)
      Creates a download handler that requests results in specified tuple format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
    • AGDownloadHandler

      public AGDownloadHandler(String file, org.eclipse.rdf4j.query.resultio.TupleQueryResultFormat format)
      Creates a download handler that requests results in specified tuple format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
    • AGDownloadHandler

      public AGDownloadHandler(File file, org.eclipse.rdf4j.query.resultio.BooleanQueryResultFormat format)
      Creates a download handler that requests results in specified boolean format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
    • AGDownloadHandler

      public AGDownloadHandler(String file, org.eclipse.rdf4j.query.resultio.BooleanQueryResultFormat format)
      Creates a download handler that requests results in specified boolean format.
      Parameters:
      file - Output path.
      format - Format to return the data in.
  • Method Details