public class RESTApiServer
extends java.lang.Object
start()
,
You can start an HTTP server that is able to handle REST requests.Modifier and Type | Field and Description |
---|---|
private RestApiServerApplication |
application
REST application.
|
Constructor and Description |
---|
RESTApiServer()
Constructor to create a REST API server object.
|
Modifier and Type | Method and Description |
---|---|
void |
registerOFModels(OFModel[] models)
Register models to the RESTApiServer object.
|
void |
start()
Start the RESTApiServer.
|
private RestApiServerApplication application
public RESTApiServer()
public void start()
public void registerOFModels(OFModel[] models)
OFModel.getAllRestApi()
to retrieve
RESTApi objects from each model.
Those objects are actually registered to the RESTApiServer object.models
-