public class Run_HttpServer
extends java.lang.Object
HttpServer
object running and also load an ESB
object onto it. This can also be
configured with command line arguments passed in as a String[]. The arguments
do not all need to be included, but must be added in the following order:
1. Server port to run on.
2. 'Yes' or 'No' https protocol indicator. Yes means https
, no means http
.
3. Password for the server.
4. Service key for the server.
5. A contact address for the server administrator - email or something.
6. 'Yes' or 'No' contract indicator.
7. (Alternative) class name of the class to load as the ESB. If this is not included
then the default 'ESB' is loaded. If this is included then it should extend
the 'Service' class and have all of the required jar files, etc., locally available
for loading.
8. An alternative representation of the IP address that the server will run on.Modifier | Constructor and Description |
---|---|
protected |
Run_HttpServer(java.lang.String[] args)
Creates a new instance of Run_HttpServer.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Start the http server running.
|
protected void |
runServer(java.lang.String[] args)
Start the HTTP server.
|
static void |
start(java.lang.String[] args)
Start the http server running.
|
protected Run_HttpServer(java.lang.String[] args) throws java.lang.Exception
args
- the arguments.java.lang.Exception
- any error.protected void runServer(java.lang.String[] args) throws java.lang.Exception
args
- initialisation argument - must be the server URL.java.lang.Exception
- any error.public static void start(java.lang.String[] args)
args
- the command line argumentspublic static void main(java.lang.String[] args)
args
- the command line arguments