< prev index next >
   1 package java.net.http;
   2 
   3 import java.io.*;
   4 import java.net.*;
   5 
   6 // will be converted to a PushPromiseFrame in the writeLoop
   7 // a thread is then created to produce the DataFrames from the InputStream
   8 class OutgoingPushPromise extends Http2Frame {
   9     final HttpHeadersImpl headers;
  10     final URI uri;
  11     final InputStream is;
  12     final int parentStream; // not the pushed streamid
  13 
  14     OutgoingPushPromise(int parentStream, URI uri, HttpHeadersImpl headers, InputStream is) {
  15         this.uri = uri;
  16         this.headers = headers;
  17         this.is = is;
  18         this.parentStream = parentStream;
  19     }
  20 
  21     @Override
  22     void readIncomingImpl(ByteBufferConsumer bc) throws IOException {
  23         throw new UnsupportedOperationException("Not supported yet.");
  24     }
  25 
  26     @Override
  27     void setLength() {
  28         throw new UnsupportedOperationException("Not supported yet.");
  29     }
  30 
  31 }
< prev index next >