@Configuration(name="server") @NoImplicit @Sources(value=Listener.class) @Operations(value=ServerOperations.class) public class Server extends Object implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
| Modifier and Type | Field and Description |
|---|---|
static String |
VARNAME_COAP_EXCHANGE
The name of the CoapExchange variable.
|
static String |
VARNAME_DEFAULT_RESPONSE_CODE
The name of the default response code variable.
|
| Constructor and Description |
|---|
Server() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose of the server.
|
List<AdditionalEndpoint> |
getAdditionalEndpoints() |
ServerInfo |
getInfo() |
ResourceRegistry |
getRegistry() |
List<ResourceConfig> |
getResources() |
org.mule.runtime.api.scheduler.SchedulerConfig |
getSchedulerConfig() |
org.mule.runtime.api.scheduler.SchedulerService |
getSchedulerService() |
String |
getServerName() |
void |
initialise()
Initialize the server and connect to CoAP endpoints.
|
void |
setAdditionalEndpoints(List<AdditionalEndpoint> endpoints) |
void |
setResources(List<ResourceConfig> resources) |
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
String |
toString()
Get String repesentation.
|
public static final String VARNAME_COAP_EXCHANGE
public static final String VARNAME_DEFAULT_RESPONSE_CODE
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic String getServerName()
public ResourceRegistry getRegistry()
public List<ResourceConfig> getResources()
public void setResources(List<ResourceConfig> resources)
resources - the resources to setpublic List<AdditionalEndpoint> getAdditionalEndpoints()
public void setAdditionalEndpoints(List<AdditionalEndpoint> endpoints)
endpoints - the endpoints references to set.public org.mule.runtime.api.scheduler.SchedulerService getSchedulerService()
public org.mule.runtime.api.scheduler.SchedulerConfig getSchedulerConfig()
public ServerInfo getInfo()
Copyright © 2019–2025 Teslanet.nl. All rights reserved.