public class GetDataResolver extends CommandResolver
Modifier and Type | Field and Description |
---|---|
static String |
FILE_NAME_PARAMETER
Parameter defining the file to return the getting files or records.
|
static String |
FILE_OFFSET_PARAMETER
Parameter defining the offset into an ARC file for getting a record.
|
static String |
GET_FILE_COMMAND
Command for getting a single file from the bitarchive.
|
static String |
GET_METADATA_COMMAND
Command for getting all metadata for a single job.
|
static String |
GET_RECORD_COMMAND
Command for getting a specific record (file+offset) from an ARC file in the bitarchive.
|
static String |
JOB_ID_PARAMETER
Parameter for ids of jobs to get metadata for.
|
ur, VIEWERPROXY_COMMAND_NAME
NOT_FOUND
Constructor and Description |
---|
GetDataResolver(URIResolver ur,
ViewerArcRepositoryClient client)
Make a new GetDataResolver, which calls commands on the arcrepository, and forwards all other requests to the
given URIResolver.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeCommand(Request request,
Response response)
Handles parsing of the URL and delegating to relevant methods for known commands.
|
isCommandHostRequest, lookup, setURIResolver
public static final String GET_FILE_COMMAND
public static final String GET_RECORD_COMMAND
public static final String GET_METADATA_COMMAND
public static final String FILE_NAME_PARAMETER
public static final String FILE_OFFSET_PARAMETER
public static final String JOB_ID_PARAMETER
public GetDataResolver(URIResolver ur, ViewerArcRepositoryClient client)
ur
- The URIResolver to handle all other uris.client
- the arcrepository clientArgumentNotValid
- if either argument is null.protected boolean executeCommand(Request request, Response response)
executeCommand
in class CommandResolver
request
- The request to checkresponse
- The response to give command results to if it is a commandIOFailure
- in any trouble.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.