Class HttpServer
java.lang.Object
cool.scx.http.x.HttpServer
- All Implemented Interfaces:
ScxHttpServer
Http 服务器
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononError(ScxHttpServerErrorHandler errorHandler) onRequest(cool.scx.function.ConsumerX<ScxHttpServerRequest, ?> requestHandler) options()voidstart(SocketAddress localAddress) voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.http.ScxHttpServer
start
-
Constructor Details
-
HttpServer
-
HttpServer
public HttpServer()
-
-
Method Details
-
onRequest
- Specified by:
onRequestin interfaceScxHttpServer
-
onError
- Specified by:
onErrorin interfaceScxHttpServer
-
start
- Specified by:
startin interfaceScxHttpServer- Throws:
IOException
-
stop
public void stop()- Specified by:
stopin interfaceScxHttpServer
-
localAddress
- Specified by:
localAddressin interfaceScxHttpServer
-
options
-