@Scope(value="request") @Component public class SimplifiedFileAccessResource extends Object
| Constructor and Description |
|---|
SimplifiedFileAccessResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getFile(javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String localId,
String representationName,
String fileName)
Returns file content from latest persistent version of specified representation.
|
javax.ws.rs.core.Response |
getFileHeaders(javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String localId,
String representationName,
String fileName)
Returns file headers from latest persistent version of specified representation.
|
public javax.ws.rs.core.Response getFile(@Context
javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String localId,
String representationName,
String fileName)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException,
eu.europeana.cloud.service.mcs.exception.FileNotExistsException,
eu.europeana.cloud.client.uis.rest.CloudException,
eu.europeana.cloud.service.mcs.exception.RecordNotExistsException,
eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException
providerId - providerIdlocalId - localIdrepresentationName - representationNamefileName - fileNameeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptioneu.europeana.cloud.service.mcs.exception.FileNotExistsExceptioneu.europeana.cloud.client.uis.rest.CloudExceptioneu.europeana.cloud.service.mcs.exception.RecordNotExistsExceptioneu.europeana.cloud.service.mcs.exception.ProviderNotExistsExceptionpublic javax.ws.rs.core.Response getFileHeaders(@Context
javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String localId,
String representationName,
String fileName)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException,
eu.europeana.cloud.service.mcs.exception.FileNotExistsException,
eu.europeana.cloud.client.uis.rest.CloudException,
eu.europeana.cloud.service.mcs.exception.RecordNotExistsException,
eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException
uriInfo - providerId - providerIdlocalId - localIdrepresentationName - representationNamefileName - fileNAmeeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptioneu.europeana.cloud.service.mcs.exception.FileNotExistsExceptioneu.europeana.cloud.client.uis.rest.CloudExceptioneu.europeana.cloud.service.mcs.exception.RecordNotExistsExceptioneu.europeana.cloud.service.mcs.exception.ProviderNotExistsExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.