public class RestWrapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
PUBLISH_ONLY_TAG_NAMES
The array of classes that need to be published but not subscribed.
|
static java.lang.String |
READ_CONTAINER_NAME
The name of the container holding the variables that will be read.
|
static java.lang.String |
WRITE_CONTAINER_NAME
The name of the container holding the variables that will be written.
|
Constructor and Description |
---|
RestWrapper()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canReload()
This server responds true.
|
void |
destroy()
Destroy the server.
|
DataSourceContainer |
getRestContainer() |
DataSourceContainer |
getRestReadContainer() |
RESTServiceManager |
getRestServiceManager()
Return the device server.
|
DataSourceContainer |
getRestWriteContainer() |
static RestWrapper |
getServer()
Return the REST server.
|
static RestWrapper |
getWrapper()
Return the wrapper creating as necessary.
|
static RestWrapper |
getWrapper(PersistenceInterface persistence)
Return the wrapper creating as necessary.
|
void |
init()
Create the server.
|
void |
populateServer()
Add all existing tags to the wrapper.
|
void |
populateServer(java.lang.Object dataSourceContainer)
Recursively add all existing tags in the given container to the wrapper.
|
void |
start()
After creating the server, tags should be added to the server.
|
void |
stop()
Stop the server.
|
public static final java.lang.String[] PUBLISH_ONLY_TAG_NAMES
public static final java.lang.String READ_CONTAINER_NAME
public static final java.lang.String WRITE_CONTAINER_NAME
public boolean canReload()
public void destroy() throws BadParameterException
BadParameterException
public DataSourceContainer getRestContainer()
public DataSourceContainer getRestReadContainer()
public RESTServiceManager getRestServiceManager()
public DataSourceContainer getRestWriteContainer()
public static RestWrapper getServer()
public static RestWrapper getWrapper()
public static RestWrapper getWrapper(PersistenceInterface persistence)
public void init() throws BadParameterException
BadParameterException
- thrown if the server cannot be createdpublic void populateServer()
public void populateServer(java.lang.Object dataSourceContainer)
public void start() throws BadParameterException, VIBUpdateFailedException
public void stop() throws BadParameterException
BadParameterException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.