Esempio n. 1
0
 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);
         }
       });
 }
Esempio n. 2
0
 public static void stream(BufferedRequest request, StreamingRequest stream) {
   stream.setTarget(request.getTarget());
   stream.setSsl(request.isSsl());
   stream((BufferedMessage) request, stream);
 }
Esempio n. 3
0
 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);
 }