@Test(expected = AccessDeniedException.class) @Ignore public void testWriteZeroBytesAccessDenied() throws Exception { final Path test = new Path(new DefaultHomeFinderService(session).find().getAbsolute() + "/nosuchdirectory/" + UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final HttpResponseOutputStream<String> write = new DAVWriteFeature(session).write(test, new TransferStatus(), new DisabledConnectionCallback()); try { write.close(); write.getStatus(); } catch(IOException e) { throw (Exception) e.getCause(); } }
@Override public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final List<Header> headers = this.getHeaders(file, status); return this.write(file, headers, status); }
DAVWriteFeature extends AbstractHttpWriteFeature<String> implements Write<String> { @Override public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final List<Header> headers = this.getHeaders(file, status); return this.write(file, headers, status); } }
DAVWriteFeature extends AbstractHttpWriteFeature<String> implements Write<String> { @Override public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final List<Header> headers = this.getHeaders(file, status); return this.write(file, headers, status); } DAVWriteFeature(final DAVSession session);  DAVWriteFeature(final DAVSession session, final boolean expect);  DAVWriteFeature(final DAVSession session, final Find finder, final AttributesFinder attributes, final boolean expect); }
DAVWriteFeature extends AbstractHttpWriteFeature<String> implements Write<String> { @Override public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final List<Header> headers = this.getHeaders(file, status); return this.write(file, headers, status); } DAVWriteFeature(final DAVSession session);  DAVWriteFeature(final DAVSession session, final boolean expect);  DAVWriteFeature(final DAVSession session, final Find finder, final AttributesFinder attributes, final boolean expect); @Override HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback); @Override boolean temporary(); @Override boolean random(); }
DAVWriteFeature extends AbstractHttpWriteFeature<String> implements Write<String> { @Override public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final List<Header> headers = this.getHeaders(file, status); return this.write(file, headers, status); } DAVWriteFeature(final DAVSession session);  DAVWriteFeature(final DAVSession session, final boolean expect);  DAVWriteFeature(final DAVSession session, final Find finder, final AttributesFinder attributes, final boolean expect); @Override HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback); @Override boolean temporary(); @Override boolean random();  }