org.rapla.examples
Class SimpleConnectorStartupEnvironment

java.lang.Object
  extended by org.rapla.examples.SimpleConnectorStartupEnvironment
All Implemented Interfaces:
StartupEnvironment

public class SimpleConnectorStartupEnvironment
extends Object
implements StartupEnvironment

Startup environment that creates an Facade Object to communicate with an rapla server instance. For a usage see ClientConnec


Field Summary
 
Fields inherited from interface org.rapla.framework.StartupEnvironment
APPLET, CONSOLE, EMBEDDED, ROLE, SERVLET, WEBSTART
 
Constructor Summary
SimpleConnectorStartupEnvironment(String host, int hostPort, String contextPath, boolean isSecure, Logger logger)
           
SimpleConnectorStartupEnvironment(String host, Logger logger)
           
 
Method Summary
 Logger getBootstrapLogger()
           
 URL getContextRootURL()
           
 URL getDownloadURL()
           
 Configuration getStartupConfiguration()
           
 int getStartupMode()
          either EMBEDDED, CONSOLE, WEBSTART, APPLET or SERVLET
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConnectorStartupEnvironment

public SimpleConnectorStartupEnvironment(String host,
                                         Logger logger)
                                  throws MalformedURLException
Throws:
MalformedURLException

SimpleConnectorStartupEnvironment

public SimpleConnectorStartupEnvironment(String host,
                                         int hostPort,
                                         String contextPath,
                                         boolean isSecure,
                                         Logger logger)
                                  throws MalformedURLException
Throws:
MalformedURLException
Method Detail

getStartupConfiguration

public Configuration getStartupConfiguration()
                                      throws RaplaException
Specified by:
getStartupConfiguration in interface StartupEnvironment
Throws:
RaplaException

getStartupMode

public int getStartupMode()
Description copied from interface: StartupEnvironment
either EMBEDDED, CONSOLE, WEBSTART, APPLET or SERVLET

Specified by:
getStartupMode in interface StartupEnvironment

getContextRootURL

public URL getContextRootURL()
                      throws RaplaException
Specified by:
getContextRootURL in interface StartupEnvironment
Throws:
RaplaException

getBootstrapLogger

public Logger getBootstrapLogger()
Specified by:
getBootstrapLogger in interface StartupEnvironment

getDownloadURL

public URL getDownloadURL()
                   throws RaplaException
Specified by:
getDownloadURL in interface StartupEnvironment
Throws:
RaplaException


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.