public static void delayedCopy( final StreamingRequest message, final MutableBufferedRequest copy, int max, final DelayedCopyObserver observer) { copy.setTarget(message.getTarget()); copy.setSsl(message.isSsl()); delayedCopy( (StreamingMessage) message, (MutableBufferedMessage) copy, max, new DelayedCopyObserver() { @Override public void copyCompleted(boolean overflow, int size) { copy.setTime(message.getTime()); observer.copyCompleted(overflow, size); } }); }
public static void stream(BufferedRequest request, StreamingRequest stream) { stream.setTarget(request.getTarget()); stream.setSsl(request.isSsl()); stream((BufferedMessage) request, stream); }
public static void buffer(StreamingRequest request, MutableBufferedRequest buff, int max) throws IOException, SizeLimitExceededException { buff.setTarget(request.getTarget()); buff.setSsl(request.isSsl()); buffer((StreamingMessage) request, buff, max); }