org.pentaho.platform.plugin.services.webservices
Class SystemSolutionAxisConfigurator

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.plugin.services.webservices.AbstractAxisConfigurator
          extended by org.pentaho.platform.plugin.services.webservices.SystemSolutionAxisConfigurator
All Implemented Interfaces:
Serializable, org.apache.axis2.engine.AxisConfigurator, ILogger
Direct Known Subclasses:
FileSystemAxisConfigurator

public class SystemSolutionAxisConfigurator
extends AbstractAxisConfigurator

This class provides axis with it's configuration information from the file axis/axis2_config.xml in the pentaho system solutions folder. In particular, it: 1) Provides an input stream for the axis configuration XML which is located in the root of the plugin folder (getConfigXml) 2) Defines the web services that are available (getWebServiceDefinitions) 3) Provides persistence for enabled/disabled status of each web service

Author:
jamesdixon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
Fields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
 
Constructor Summary
SystemSolutionAxisConfigurator()
           
 
Method Summary
 void addService(IServiceConfig ws)
           
static String getAxisConfigPath()
           
 InputStream getConfigXml()
           
 org.apache.commons.logging.Log getLogger()
           
 void init()
           
 boolean setEnabled(String name, boolean enabled)
           
 
Methods inherited from class org.pentaho.platform.plugin.services.webservices.AbstractAxisConfigurator
cleanup, engageGlobalModules, getAxisConfiguration, getWebServiceDefinition, loadServices, reloadServices, setSession, unloadServices
 
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSolutionAxisConfigurator

public SystemSolutionAxisConfigurator()
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()
Specified by:
getLogger in class AbstractAxisConfigurator

init

public void init()
Specified by:
init in class AbstractAxisConfigurator

getAxisConfigPath

public static String getAxisConfigPath()

getConfigXml

public InputStream getConfigXml()
Specified by:
getConfigXml in class AbstractAxisConfigurator

setEnabled

public boolean setEnabled(String name,
                          boolean enabled)
                   throws org.apache.axis2.AxisFault
Specified by:
setEnabled in class AbstractAxisConfigurator
Throws:
org.apache.axis2.AxisFault

addService

public void addService(IServiceConfig ws)
Specified by:
addService in class AbstractAxisConfigurator