Class HttpServer


  • public class HttpServer
    extends java.lang.Object
    Since:
    4.4
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void awaitTermination​(long timeout, java.util.concurrent.TimeUnit timeUnit)  
      java.net.InetAddress getInetAddress()  
      int getLocalPort()  
      void shutdown​(long gracePeriod, java.util.concurrent.TimeUnit timeUnit)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInetAddress

        public java.net.InetAddress getInetAddress()
      • getLocalPort

        public int getLocalPort()
      • start

        public void start()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • stop

        public void stop()
      • awaitTermination

        public void awaitTermination​(long timeout,
                                     java.util.concurrent.TimeUnit timeUnit)
                              throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shutdown

        public void shutdown​(long gracePeriod,
                             java.util.concurrent.TimeUnit timeUnit)