Interface HttpServer
-
- All Known Implementing Classes:
DefaultHttpServer
public interface HttpServerAn interface defines an HTTP server.- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpServer.AbstractUserThe abstract implementation ofHttpServer.User.static interfaceHttpServer.UserAn interface defines a user access to the HTTP server.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.ServerChannelchannel()Returns the bindingServerChannel.booleanisRunning()Returns if this server isrunningor not.booleanisSslEnabled()Returns whether to enable SSL support.java.lang.Stringname()Returns the display name of this server.HttpServershutdown()Shut down this server.HttpServerstartup()Start up this server.
-
-
-
Method Detail
-
name
java.lang.String name()
Returns the display name of this server.- Returns:
- the display name of this server
-
isRunning
boolean isRunning()
Returns if this server isrunningor not.- Returns:
trueif this server isrunning
-
startup
HttpServer startup() throws java.lang.Exception
Start up this server.- Returns:
- this server
- Throws:
java.lang.Exception- if any error occurs
-
channel
io.netty.channel.ServerChannel channel()
Returns the bindingServerChannel.- Returns:
- a
ServerChannel
-
shutdown
HttpServer shutdown() throws java.lang.Exception
Shut down this server.- Returns:
- this server
- Throws:
java.lang.Exception- if any error occurs
-
isSslEnabled
boolean isSslEnabled()
Returns whether to enable SSL support.- Returns:
trueif is enabled SSL support
-
-