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, 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, 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, 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, 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, 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, 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