|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.server.Starter
public final class Starter
Server Starting class.
Field Summary | |
---|---|
static java.lang.String |
BUNDLE
Resource bundle name |
static int |
DEFAULT_CONNECTIONS
Maximal connections |
Method Summary | |
---|---|
static org.restlet.Application |
getApplication(int hostindex)
For Test purpose |
static void |
initStatusService(SitoolsSettings settings,
java.lang.String baseUrl,
org.restlet.Component component)
Initialize the status service on the given component |
static org.restlet.routing.VirtualHost |
initVirtualHost(org.restlet.Context vhostContext,
SitoolsSettings settings)
Initialize the virtual host |
static void |
main(java.lang.String[] args)
Run the server as a stand-alone component. |
static void |
start(java.lang.String hostname,
int port,
java.lang.String publicHostName)
Builds and starts the server component. |
static void |
startWithProxy(java.lang.String[] args,
SitoolsSettings settings)
setup proxy configuration Default none. |
static void |
stop()
STOP server |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUNDLE
public static final int DEFAULT_CONNECTIONS
Method Detail |
---|
public static org.restlet.Application getApplication(int hostindex)
hostindex
- no d'ordre d'application attachée au composant.
public static void main(java.lang.String[] args)
args
- The optional arguments.public static void startWithProxy(java.lang.String[] args, SitoolsSettings settings)
args
- The optional arguments.settings
- SitoolsSettingspublic static void start(java.lang.String hostname, int port, java.lang.String publicHostName) throws java.lang.Exception
hostname
- host name default "localhost"port
- port HTTP for server / virtual host . Default 8182publicHostName
- public host reference of server
java.lang.Exception
- always possiblepublic static void stop()
public static void initStatusService(SitoolsSettings settings, java.lang.String baseUrl, org.restlet.Component component) throws java.lang.Exception
settings
- The SitoolsSettings objectbaseUrl
- the baseUrlcomponent
- the component in which to add the status service
java.lang.Exception
- if something is wrongpublic static org.restlet.routing.VirtualHost initVirtualHost(org.restlet.Context vhostContext, SitoolsSettings settings)
vhostContext
- the context with which to create the hostsettings
- the SitoolsSettings object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |