Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
AServer() |
AServer(String staticLocation,
int port)
Sets the folder in classpath serving static files and checks the port as well as writes a file
to kill the application.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addShutdownHook()
Runs before the server shuts down.
|
abstract void |
mapRoutes()
Initializes the roots of the server
|
void |
start()
Starts the server and allows utf-8 requests only.
|
void |
stop()
Stops the service.
|
public AServer()
public AServer(String staticLocation, int port) throws IOException
staticLocation
- port
- IOException
public void stop()
public final void start()
public abstract void mapRoutes()
public abstract void addShutdownHook()
Copyright © 2024. All rights reserved.