public class AGDownloadHandler extends AGResponseHandler
Constructor and Description |
---|
AGDownloadHandler(File file)
Creates a download handler that does not specify the MIME type.
|
AGDownloadHandler(File file,
BooleanQueryResultFormat format)
Creates a download handler that requests results in specified boolean format.
|
AGDownloadHandler(File file,
RDFFormat format)
Creates a download handler that requests results in specified RDF format.
|
AGDownloadHandler(File file,
String mimeType)
Creates a download handler.
|
AGDownloadHandler(File file,
TupleQueryResultFormat format)
Creates a download handler that requests results in specified tuple format.
|
AGDownloadHandler(String file)
Creates a download handler that does not specify the MIME type.
|
AGDownloadHandler(String file,
BooleanQueryResultFormat format)
Creates a download handler that requests results in specified boolean format.
|
AGDownloadHandler(String file,
RDFFormat format)
Creates a download handler that requests results in specified RDF format.
|
AGDownloadHandler(String file,
String mimeType)
Creates a download handler.
|
AGDownloadHandler(String file,
TupleQueryResultFormat format)
Creates a download handler that requests results in specified tuple format.
|
Modifier and Type | Method and Description |
---|---|
void |
handleResponse(org.apache.http.HttpResponse httpResponse,
org.apache.http.client.methods.HttpUriRequest httpUriRequest) |
getRequestMIMEType, releaseConnection
public AGDownloadHandler(File file, String mimeType)
file
- Output path.mimeType
- MIME type to be requested from the server.public AGDownloadHandler(String file, String mimeType)
file
- Output path.mimeType
- MIME type to be requested from the server.public AGDownloadHandler(File file)
The server is free to return any content type.
file
- Output path.public AGDownloadHandler(String file)
The server is free to return any content type.
file
- Output path.public AGDownloadHandler(File file, RDFFormat format)
file
- Output path.format
- Format to return the data in.public AGDownloadHandler(String file, RDFFormat format)
file
- Output path.format
- Format to return the data in.public AGDownloadHandler(File file, TupleQueryResultFormat format)
file
- Output path.format
- Format to return the data in.public AGDownloadHandler(String file, TupleQueryResultFormat format)
file
- Output path.format
- Format to return the data in.public AGDownloadHandler(File file, BooleanQueryResultFormat format)
file
- Output path.format
- Format to return the data in.public AGDownloadHandler(String file, BooleanQueryResultFormat format)
file
- Output path.format
- Format to return the data in.public void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException
handleResponse
in class AGResponseHandler
IOException
AGHttpException
Copyright © 2024 Franz Inc.. All rights reserved.