< prev index next >
   1 package java.net.http;
   2 
   3 import java.io.IOException;
   4 
   5 /**
   6  * A handler which is invoked to process HTTP exchanges. Each
   7  * HTTP exchange is handled by one of these handlers.
   8  */
   9 public interface Http2Handler {
  10     /**
  11      * Handle the given request and generate an appropriate response.
  12      * @param exchange the exchange containing the request from the
  13      *      client and used to send the response
  14      * @throws NullPointerException if exchange is <code>null</code>
  15      */
  16     public abstract void handle (Http2TestExchange exchange) throws IOException;
  17 }
  18 
< prev index next >