java.lang.Object
cloud.piranha.http.grizzly.GrizzlyHttpServer
- All Implemented Interfaces:
HttpServer
The Grizzly implementation of HTTP Server.
- Author:
- Manfred Riem ([email protected])
- See Also:
HttpServer
-
Constructor Summary
ConstructorDescriptionConstructor.GrizzlyHttpServer(int serverPort)
ConstructorGrizzlyHttpServer(int serverPort, HttpServerProcessor httpServerProcessor)
ConstructorGrizzlyHttpServer(org.glassfish.grizzly.http.server.HttpServer httpServer)
Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the http server processor.int
Returns the server port.boolean
getSSL()
Get the SSL flagboolean
Check if the server is running.void
setHttpServerProcessor(HttpServerProcessor httpServerProcessor)
Set the http server processorvoid
setServerPort(int serverPort)
Set the server portvoid
setSSL(boolean ssl)
Set the SSL flagvoid
start()
Start the server.void
stop()
Stop the server.
-
Constructor Details
-
GrizzlyHttpServer
public GrizzlyHttpServer()Constructor. -
GrizzlyHttpServer
public GrizzlyHttpServer(int serverPort)Constructor- Parameters:
serverPort
- the server port.
-
GrizzlyHttpServer
Constructor- Parameters:
serverPort
- the server port.httpServerProcessor
- the HTTP server processor;
-
GrizzlyHttpServer
public GrizzlyHttpServer(org.glassfish.grizzly.http.server.HttpServer httpServer)Constructor- Parameters:
httpServer
- the Grizzly HTTP server.
-
-
Method Details
-
getHttpServerProcessor
Description copied from interface:HttpServer
Returns the http server processor.- Specified by:
getHttpServerProcessor
in interfaceHttpServer
- Returns:
- the http server processor
-
getServerPort
public int getServerPort()Description copied from interface:HttpServer
Returns the server port.- Specified by:
getServerPort
in interfaceHttpServer
- Returns:
- the server port
-
getSSL
public boolean getSSL()Description copied from interface:HttpServer
Get the SSL flag- Specified by:
getSSL
in interfaceHttpServer
- Returns:
- the server port
-
isRunning
public boolean isRunning()Description copied from interface:HttpServer
Check if the server is running.- Specified by:
isRunning
in interfaceHttpServer
- Returns:
- true if it is, false otherwise.
-
setHttpServerProcessor
Description copied from interface:HttpServer
Set the http server processor- Specified by:
setHttpServerProcessor
in interfaceHttpServer
- Parameters:
httpServerProcessor
- the http server processor
-
setServerPort
public void setServerPort(int serverPort)Description copied from interface:HttpServer
Set the server port- Specified by:
setServerPort
in interfaceHttpServer
- Parameters:
serverPort
- the port
-
setSSL
public void setSSL(boolean ssl)Description copied from interface:HttpServer
Set the SSL flag- Specified by:
setSSL
in interfaceHttpServer
- Parameters:
ssl
- the SSL flag
-
start
public void start()Description copied from interface:HttpServer
Start the server.- Specified by:
start
in interfaceHttpServer
-
stop
public void stop()Description copied from interface:HttpServer
Stop the server.- Specified by:
stop
in interfaceHttpServer
-