Class HttpUtils


  • public class HttpUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String id​(com.sun.net.httpserver.HttpExchange httpExchange, java.lang.String prefix)  
      static java.util.concurrent.ExecutorService makeDefaultExecutor()  
      static void process​(com.sun.net.httpserver.HttpExchange exchange, java.util.concurrent.Callable<SimpleHttpResponse> callable)  
      static void write​(com.sun.net.httpserver.HttpExchange exchange, SimpleHttpResponse response)  
      • Methods inherited from class java.lang.Object

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

      • HttpUtils

        public HttpUtils()
    • Method Detail

      • makeDefaultExecutor

        public static java.util.concurrent.ExecutorService makeDefaultExecutor()
      • write

        public static void write​(com.sun.net.httpserver.HttpExchange exchange,
                                 SimpleHttpResponse response)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • process

        public static void process​(com.sun.net.httpserver.HttpExchange exchange,
                                   java.util.concurrent.Callable<SimpleHttpResponse> callable)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • id

        public static java.lang.String id​(com.sun.net.httpserver.HttpExchange httpExchange,
                                          java.lang.String prefix)