public class PrimaryDataFileVirtualResource extends PrimaryDataEntityResource implements io.milton.resource.GetableResource
entity, fileSystemHandler, path, username| Constructor and Description |
|---|
PrimaryDataFileVirtualResource(String path,
long revision,
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) |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Long |
getMaxAgeSeconds(io.milton.http.Auth auth) |
String |
getName()
Returns the file name for a virtual version file.
|
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 PrimaryDataFileVirtualResource(String path, long revision, 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, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionException
RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryExceptionNotBoundExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersionExceptionpublic 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.GetableResourceCopyright © 2016 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.