public final class HTTPServerAppImpl extends MetadataServiceAppImpl implements ServiceThread.Target
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_PROPERTY
Specifies on which network address to listen.
|
static String |
AUTHENTICATOR_PROPERTY
The Authenticator required for this context.
|
static String |
CONFIDENTIAL_PROPERTY
Specifies if the communication channel must be confidential.
|
static String |
CONFIG_PROPERTY
Specifies the path to the user-password-roles configuration file.
|
static String |
CONTEXT_PROPERTIES
Properties used to define an HTTP server context.
|
static String |
DEFAULT_ADDRESS
Default address.
|
static int |
DEFAULT_HTTP_PORT
Default HTTP port.
|
static String |
DEFAULT_HTTP_SUPPORT_CLASS
Default HTTP support.
|
static int |
DEFAULT_HTTPS_PORT
Default HTTPS port.
|
static String |
HTTP_SUPPORT_CLASS_PROPERTY
HTTP server support class.
|
static String |
LISTENER_PROPERTIES
Properties used to define an HTTP server listener.
|
static String |
MODULE_CLASS_PROPERTY
The class of the module to activate for the context.
|
static String |
NAME_PROPERTY
Specifies the name of the realm.
|
static String |
PATH_PROPERTY
The relative path pointing to the context.
|
static String |
PORT_PROPERTY
Specifies on which network port to listen.
|
static String |
REALM_PROPERTIES
Properties used to define an HTTP server realm.
|
static String |
REALM_PROPERTY
The realm used for the context.
|
static String |
RESOURCE_PROPERTY
The path to a resource directory.
|
static String |
ROLE_PROPERTY
The security role needed to access the context.
|
static String |
SERVER_PROPERTIES
Server properties.
|
SERVICE_APP_PROPERTIES
Constructor and Description |
---|
HTTPServerAppImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
onEvent(Event event)
Called when a event has been received.
|
boolean |
onSignal(Signal signal)
Called when a signal has been received.
|
void |
run()
Runs.
|
boolean |
setUp(MetadataService service)
Sets up the application.
|
void |
start()
Starts the application.
|
void |
stop()
Stops the application.
|
void |
tearDown()
Tears down the application.
|
getEntityName, getMetadata, getService, loadMetadata, onNewMetadata, setUp
createStats, fail, getConfig, getConfigProperties, getDataDir, getJoinTimeout, getProperties, getSourceUUID, getThisLogger, getTimer, onAlert, onServiceNotAvailableException, onServicesNotReady, onServicesReady
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStats, onAlert, onServicesNotReady, onServicesReady
public static final String ADDRESS_PROPERTY
public static final String AUTHENTICATOR_PROPERTY
public static final String CONFIDENTIAL_PROPERTY
public static final String CONFIG_PROPERTY
public static final String CONTEXT_PROPERTIES
public static final String DEFAULT_ADDRESS
public static final int DEFAULT_HTTPS_PORT
public static final int DEFAULT_HTTP_PORT
public static final String DEFAULT_HTTP_SUPPORT_CLASS
public static final String HTTP_SUPPORT_CLASS_PROPERTY
public static final String LISTENER_PROPERTIES
public static final String MODULE_CLASS_PROPERTY
public static final String NAME_PROPERTY
public static final String PATH_PROPERTY
public static final String PORT_PROPERTY
public static final String REALM_PROPERTIES
public static final String REALM_PROPERTY
public static final String RESOURCE_PROPERTY
public static final String ROLE_PROPERTY
public static final String SERVER_PROPERTIES
public boolean onEvent(Event event)
Caution: this is called while synchronized on the service.
onEvent
in interface ServiceApp
onEvent
in class ServiceAppImpl
event
- The event.public boolean onSignal(Signal signal)
Caution: this is called while synchronized on the service.
onSignal
in interface ServiceApp
onSignal
in class ServiceAppImpl
signal
- The signal.public void run() throws InterruptedException
Similar to same in Runnable but may throw exceptions.
run
in interface ServiceThread.Target
InterruptedException
public boolean setUp(MetadataService service)
Overidden as needed.
Called by the framework and by overriding classes at the beginning of the override.
setUp
in interface MetadataServiceApp
setUp
in class MetadataServiceAppImpl
service
- The service holding this application.public void start()
Overidden as needed by the application.
Called by the framework.
Should return only when the application is started.
start
in interface ServiceApp
start
in class ServiceAppImpl
public void stop()
Overidden as needed by the application.
Called by the framework.
stop
in interface ServiceApp
stop
in class ServiceAppImpl
public void tearDown()
Overidden as needed by the application.
Called by the framework and by overriding classes at the end of the override.
tearDown
in interface ServiceApp
tearDown
in class ServiceAppImpl
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.