Package one.xingyi.javaserver
Class HttpUtils
- java.lang.Object
-
- one.xingyi.javaserver.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.Stringid(com.sun.net.httpserver.HttpExchange httpExchange, java.lang.String prefix)static java.util.concurrent.ExecutorServicemakeDefaultExecutor()static voidprocess(com.sun.net.httpserver.HttpExchange exchange, java.util.concurrent.Callable<SimpleHttpResponse> callable)static voidwrite(com.sun.net.httpserver.HttpExchange exchange, SimpleHttpResponse response)
-
-
-
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)
-
-