@Override public void attachFile( final String contentType, final URI fileURI, final String dataRequestName, final File file, final boolean isRecursive) throws IOException { attachFile(contentType, fileURI, dataRequestName, null /* props */, file, isRecursive); dirty = true; }
@Override public void close() throws IOException { closeInternally(); isExternallyClosed = true; }
private void close() { if (payloadFilesMgr != null) { payloadFilesMgr.cleanup(); } }
private File removeFile(final Payload.Part part) throws IOException { final File result = removeFileWithoutConsumingPartBody(part); consumePartBody(part); return result; }
private void recordZipEntryEOF() throws IOException { invalidateCurrentWrapperStream(); prefetchNextEntry(); }
@Override public Payload.Part next() { final Extra extra = new Extra(nextEntry.getExtra()); final Payload.Part part = new ZipPayloadImpl.Part( nextEntry.getName(), extra.getContentType(), extra.getProperties(), Inbound.this); isNextEntryPrefetched = false; return part; }
private void processReport(final Payload.Part part) throws Exception { if (reportHandler != null) { reportHandler.handleReport(part.getInputStream()); } else { consumePartBody(part); } }
/** * Returns a new Zip implementation of the Inbound Payload. * @param payloadContentType content type for the payload * @param is InputStream from which to read the payload * @return Payload.Inbound containing the data from the specified input stream; * null if the payloadContentType is not what this zip-based * implementation can handle * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { return new Inbound(is); }
@Override public void close() throws IOException { invalidate(); } }
@Override public void requestFileRemoval( final URI fileURI, final String dataRequestName, final Properties props) throws IOException { requestFileRemoval(fileURI, dataRequestName, props, false /* isRecursive */); dirty = true; }
@Override public InputStream getInputStream() { return new Inbound.ZipEntryInputStream(inboundPayload); } }
private File removeFile(final Payload.Part part) throws IOException { final File result = removeFileWithoutConsumingPartBody(part); consumePartBody(part); return result; }
private void recordZipEntryEOF() throws IOException { invalidateCurrentWrapperStream(); prefetchNextEntry(); }
@Override public Payload.Part next() { final Extra extra = new Extra(nextEntry.getExtra()); final Payload.Part part = new ZipPayloadImpl.Part( nextEntry.getName(), extra.getContentType(), extra.getProperties(), Inbound.this); isNextEntryPrefetched = false; return part; }
@Override public void attachFile( final String contentType, final URI fileURI, final String dataRequestName, final Properties props, final File file) throws IOException { attachFile(contentType, fileURI, dataRequestName, props, file, false /* isRecursive */); dirty = true; }
/** * Returns a new Zip implementation of the Inbound Payload. * @param payloadContentType content type for the payload * @param is InputStream from which to read the payload * @return Payload.Inbound containing the data from the specified input stream; * null if the payloadContentType is not what this zip-based * implementation can handle * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { return new Inbound(is); }
@Override public void close() throws IOException { invalidate(); } }
@Override public void requestFileRemoval( final URI fileURI, final String dataRequestName, final Properties props) throws IOException { requestFileRemoval(fileURI, dataRequestName, props, false /* isRecursive */); dirty = true; }
@Override public void attachFile( final String contentType, final URI fileURI, final String dataRequestName, final File file, final boolean isRecursive) throws IOException { attachFile(contentType, fileURI, dataRequestName, null /* props */, file, isRecursive); }
@Override public void attachFile( final String contentType, final URI fileURI, final String dataRequestName, final Properties props, final File file) throws IOException { attachFile(contentType, fileURI, dataRequestName, props, file, false /* isRecursive */); }