public boolean hasDocument(String documentPath) { boolean exists = false; Resource document = this.getDocumentResource(documentPath); if (document != null) { exists = document.exists(); } return exists; }
public boolean hasDocument(String documentPath) { boolean exists = false; Resource document = this.getDocumentResource(documentPath); if (document != null) { exists = document.exists(); } return exists; }
public boolean hasDocument(String documentPath) { boolean exists = false; Resource document = this.getDocumentResource(documentPath); if (document != null) { exists = document.exists(); } return exists; }
public long lastModified(String documentPath) throws IOException { long mod = -1L; Resource document = this.getDocumentResource(documentPath); if (document != null) { mod = document.getURL().openConnection().getLastModified(); } return mod; }
public long lastModified(String documentPath) throws IOException { long mod = -1L; Resource document = this.getDocumentResource(documentPath); if (document != null) { mod = document.getURL().openConnection().getLastModified(); } return mod; }
public long lastModified(String documentPath) throws IOException { long mod = -1L; Resource document = this.getDocumentResource(documentPath); if (document != null) { mod = document.getURL().openConnection().getLastModified(); } return mod; }
public InputStream getDocument(String documentPath) throws IOException { Resource document = this.getDocumentResource(documentPath); if (document == null || !document.exists()) { throw new IOException("Document " + documentPath + " does not exist within store " + getBasePath()); } if (logger.isTraceEnabled()) logger.trace("getDocument: documentPath: " + documentPath + " , storePath: " + document.getURL().toExternalForm()); return document.getInputStream(); }
public InputStream getDocument(String documentPath) throws IOException { Resource document = this.getDocumentResource(documentPath); if (document == null || !document.exists()) { throw new IOException("Document " + documentPath + " does not exist within store " + getBasePath()); } if (logger.isTraceEnabled()) logger.trace("getDocument: documentPath: " + documentPath + " , storePath: " + document.getURL().toExternalForm()); return document.getInputStream(); }
public InputStream getDocument(String documentPath) throws IOException { Resource document = this.getDocumentResource(documentPath); if (document == null || !document.exists()) { throw new IOException("Document " + documentPath + " does not exist within store " + getBasePath()); } if (logger.isTraceEnabled()) logger.trace("getDocument: documentPath: " + documentPath + " , storePath: " + document.getURL().toExternalForm()); return document.getInputStream(); }