Class ResponseSender


  • public class ResponseSender
    extends java.lang.Object
    Utility for sending a Response to HttpExchange.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseSender​(Addresses addresses, com.sun.net.httpserver.HttpExchange exchange, Response response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void send()  
      void sendHeadResponse()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseSender

        public ResponseSender​(Addresses addresses,
                              com.sun.net.httpserver.HttpExchange exchange,
                              Response response)
    • Method Detail

      • send

        public void send()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • sendHeadResponse

        public void sendHeadResponse()
                              throws java.io.IOException
        Throws:
        java.io.IOException