org.idoox.wasp
Class Wasp

java.lang.Object
  extended byorg.idoox.wasp.Wasp

Deprecated. Use Wasp instead.

public abstract class Wasp
extends java.lang.Object

Implementation of this abstract class must boot and shut down WSO2 SOA Enablement Server. This implementation class is passed in initialArguments map - wasp.impl.class or it's com.idoox.wasp.WaspImpl.

Since:
4.0
Component:
Core

Constructor Summary
protected Wasp()
          Deprecated.  
 
Method Summary
protected abstract  void boot(java.util.Map initialArguments, java.lang.ClassLoader ifaceClassLoader, java.lang.ClassLoader implClassLoader)
          Deprecated. Loads configurator and all necessary modules.
static void destroy()
          Deprecated. Destroys WSO2 SOA Enablement Server.
static void init()
          Deprecated. Initializes WSO2 SOA Enablement Server with default settings only.
static void init(java.util.Map initialArguments)
          Deprecated. Initializes WSO2 SOA Enablement Server with given arguments.
protected abstract  void shutdown()
          Deprecated. Unloads all loaded modules.
static Transport start(java.lang.String endpoint)
          Deprecated. Starts server on given endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wasp

protected Wasp()
Deprecated. 
Method Detail

init

public static void init()
                 throws WaspInternalException
Deprecated. 
Initializes WSO2 SOA Enablement Server with default settings only.

Throws:
WaspInternalException

init

public static void init(java.util.Map initialArguments)
                 throws WaspInternalException
Deprecated. 
Initializes WSO2 SOA Enablement Server with given arguments. If given argument isn't specified in the map it's taken from META-INF/wasp.properties property file which is loaded as resource from class loader. If the argument isn't in this file, the default value is taken - parameter in brackets.

Possible arguments:

wasp.location - installed location
wasp.config.location - relative (to wasp.location) path of configuration file (conf/clientconf.xml)
wasp.config.include - list of additional configs to include, delimited by commas
wasp.configurator.class - which org.idoox.config.Configurator implementation is used (com.idoox.config.xml.XMLConfigurator)
idoox.debug.level - determines the number of logging messages (client - 2, server - 3)
idoox.debug.logger - specifies logging system, e.g. log4j, if you do not want to use log4j set this property to waspLogger
log4j.configuration - specifies path to the property configuration file for lo4j. If it contains relarive path then it will be evaluated relatively to wasp.location
wasp.impl.class - determines the implementation of org.idoox.wasp.Wasp (com.idoox.wasp.WaspImpl)
wasp.impl.classpath - classpath of WSO2 SOA Enablement Server implementation
wasp.shutdownhook - if true WSO2 SOA Enablement Server should be automatically destroyed just before JVM is destroyed, false - if client wants to manage shutdown process.

Level of logging can be: 0 - none, 1 - errors, 2 - warnings, 3 - infos, 4 - debugs (it must be non-stripped distribution).

Parameters:
initialArguments - map of initial arguments
Throws:
WaspInternalException

destroy

public static void destroy()
Deprecated. 
Destroys WSO2 SOA Enablement Server.


start

public static Transport start(java.lang.String endpoint)
                       throws TransportStartException,
                              java.net.MalformedURLException
Deprecated. 
Starts server on given endpoint. If the WSO2 SOA Enablement Server isn't initialized it's automatically initialized. Endpoint where the server should be started is a string like https (starts HTTPS server on port from configuration or it is a string like http://googoo:8080/wasp/ which means that HTTP server should be started on port 8080. The endpoint string is passed to Transport.start(URI) method.

Parameters:
endpoint - address where to start server
Returns:
started transport
Throws:
TransportStartException
java.net.MalformedURLException
See Also:
Transport.start(org.idoox.transport.URI)

boot

protected abstract void boot(java.util.Map initialArguments,
                             java.lang.ClassLoader ifaceClassLoader,
                             java.lang.ClassLoader implClassLoader)
                      throws WaspInternalException
Deprecated. 
Loads configurator and all necessary modules.

Parameters:
initialArguments - map of initial arguments
ifaceClassLoader - interface class loader
implClassLoader - implementation class loader
Throws:
WaspInternalException

shutdown

protected abstract void shutdown()
Deprecated. 
Unloads all loaded modules.