public class PrimaryDataFileResource extends PrimaryDataEntityResource implements io.milton.resource.GetableResource, io.milton.resource.DeletableResource, io.milton.resource.MoveableResource
entity, fileSystemHandler, path, username| Constructor and Description |
|---|
PrimaryDataFileResource(String path,
FileSystemHandler fileSystemHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorise(io.milton.http.Request request,
io.milton.http.Request.Method method,
io.milton.http.Auth auth) |
void |
delete() |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Long |
getMaxAgeSeconds(io.milton.http.Auth auth) |
String |
getName()
Returns the file name.
|
void |
moveTo(io.milton.resource.CollectionResource rDest,
String name) |
void |
sendContent(OutputStream out,
io.milton.http.Range range,
Map<String,String> params,
String contentType)
Sends the content of a virtual version file to a requesting client.
|
authenticate, checkRedirect, exists, getCreateDate, getEntity, getModifiedDate, getRealm, getUniqueId, isDirectorypublic PrimaryDataFileResource(String path, FileSystemHandler fileSystemHandler) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException, NotBoundException, de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryExceptionNotBoundExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateExceptionpublic boolean authorise(io.milton.http.Request request,
io.milton.http.Request.Method method,
io.milton.http.Auth auth)
authorise in interface io.milton.resource.Resourceauthorise in class PrimaryDataEntityResourcepublic String getName()
getName in interface io.milton.resource.ResourcegetName in class PrimaryDataEntityResourcepublic void sendContent(OutputStream out, io.milton.http.Range range, Map<String,String> params, String contentType) throws IOException, io.milton.http.exceptions.NotAuthorizedException, io.milton.http.exceptions.BadRequestException, io.milton.http.exceptions.NotFoundException
sendContent in interface io.milton.resource.GetableResourceIOExceptionio.milton.http.exceptions.NotAuthorizedExceptionio.milton.http.exceptions.BadRequestExceptionio.milton.http.exceptions.NotFoundExceptionpublic Long getContentLength()
getContentLength in interface io.milton.resource.GetableResourcepublic String getContentType(String accepts)
getContentType in interface io.milton.resource.GetableResourcepublic Long getMaxAgeSeconds(io.milton.http.Auth auth)
getMaxAgeSeconds in interface io.milton.resource.GetableResourcepublic void delete()
throws io.milton.http.exceptions.NotAuthorizedException,
io.milton.http.exceptions.ConflictException,
io.milton.http.exceptions.BadRequestException
delete in interface io.milton.resource.DeletableResourceio.milton.http.exceptions.NotAuthorizedExceptionio.milton.http.exceptions.ConflictExceptionio.milton.http.exceptions.BadRequestExceptionpublic void moveTo(io.milton.resource.CollectionResource rDest,
String name)
throws io.milton.http.exceptions.ConflictException,
io.milton.http.exceptions.NotAuthorizedException,
io.milton.http.exceptions.BadRequestException
moveTo in interface io.milton.resource.MoveableResourceio.milton.http.exceptions.ConflictExceptionio.milton.http.exceptions.NotAuthorizedExceptionio.milton.http.exceptions.BadRequestExceptionCopyright © 2016 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.