| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final String | |
| private static final String | |
| private static final String | |
| private static final int | |
| private final String | |
| private static final Logger | |
| private volatile int | |
| private final Map | |
| private ServerContainer | |
| public static final String | STATIC_CONTENT_ROOT
Path to static content to be served by created Server instance. |
| Access | Constructor and Description |
|---|---|
| public | Server(Class<?>...
to be registered with the server. Classes annotated with configuration)jakarta., implementing
jakarta. or extending jakarta.
are supported.Create new server instance. |
| public | Server(Map<String, Object>
properties used as a parameter to properties, Class<?>... (java. call.to be registered with the server. Classes annotated with configuration)jakarta., implementing jakarta. or extending jakarta.
are supported.Create new server instance. |
| public | Server(String
hostName of the server. hostName, int port of the server. When provided value is port, String 0, default port (8025)
will be used, when -1, ephemeral port number will be used.root path to the server App. contextPath, Map<String, Object> properties used as a parameter to properties, Class<?>... (java. call.to be registered with the server. Classes annotated with configuration)jakarta., implementing
jakarta. or extending jakarta.
are supported.Construct new server. |
| public | Server(String
hostName of the server. hostName, int port of the server. When provided value is port, String 0, default port (8025)
will be used, when -1, ephemeral port number will be used.root path to the server App. contextPath, Map<String, Object> properties used as a parameter to properties, Set<Class<?>> (java. call.to be registered with the server. Classes annotated with configuration)jakarta., implementing jakarta.
or extending jakarta.
are supported.Construct new server. |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| public int | Returns: the port which was used to start the container.Get the port which was used to start the container. |
| public static void | |
| public void | |
| public void |
| configuration | back to summary |
|---|---|
| private final Set<Class<?>> configuration | |
| contextPath | back to summary |
|---|---|
| private final String contextPath | |
| DEFAULT_CONTEXT_PATH | back to summary |
|---|---|
| private static final String DEFAULT_CONTEXT_PATH | |
| DEFAULT_HOST_NAME | back to summary |
|---|---|
| private static final String DEFAULT_HOST_NAME | |
| DEFAULT_PORT | back to summary |
|---|---|
| private static final int DEFAULT_PORT | |
| hostName | back to summary |
|---|---|
| private final String hostName | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| port | back to summary |
|---|---|
| private volatile int port | |
| properties | back to summary |
|---|---|
| private final Map<String, Object> properties | |
| server | back to summary |
|---|---|
| private ServerContainer server | |
| STATIC_CONTENT_ROOT | back to summary |
|---|---|
| public static final String STATIC_CONTENT_ROOT Path to static content to be served by created Server instance.
Value have to be non-empty | |
| Server | back to summary |
|---|---|
| public Server(Class<?>... configuration) Create new server instance.
| |
| Server | back to summary |
|---|---|
| public Server(Map<String, Object> properties, Class<?>... configuration) Create new server instance.
| |
| Server | back to summary |
|---|---|
| public Server(String hostName, int port, String contextPath, Map<String, Object> properties, Class<?>... configuration) Construct new server.
| |
| Server | back to summary |
|---|---|
| public Server(String hostName, int port, String contextPath, Map<String, Object> properties, Set<Class<?>> configuration) Construct new server.
| |
| getClassesFromString | back to summary |
|---|---|
| private static Set | |
| getPort | back to summary |
|---|---|
| public int getPort() Get the port which was used to start the container.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| start | back to summary |
|---|---|
| public void start() throws DeploymentException Start the server. | |
| stop | back to summary |
|---|---|
| public void stop() Stop the server. | |