Class AbstractAxisConfigurator
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.plugin.services.webservices.AbstractAxisConfigurator
- All Implemented Interfaces:
Serializable
,org.apache.axis2.engine.AxisConfigurator
,org.pentaho.platform.api.engine.ILogger
- Direct Known Subclasses:
SystemSolutionAxisConfigurator
public abstract class AbstractAxisConfigurator
extends org.pentaho.platform.engine.core.system.PentahoBase
implements org.apache.axis2.engine.AxisConfigurator
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.axis2.engine.AxisConfiguration
protected boolean
protected org.pentaho.platform.api.engine.IPentahoSession
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, loggingLevel, 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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addService
(org.pentaho.platform.api.engine.IServiceConfig ws) protected abstract void
addServiceEndPoints
(org.apache.axis2.description.AxisService axisService) Adds any implementation-specific web service endpoints for a Axis serviceprotected abstract void
addTransports
(org.apache.axis2.description.AxisService axisService) Adds any implementation-specific transports for a Axis servicevoid
cleanup()
An AxisConfigurator method that we don't needvoid
An AxisConfigurator method that we don't needorg.apache.axis2.engine.AxisConfiguration
Creates the AxisConfiguration object using an XML document.abstract InputStream
abstract org.apache.commons.logging.Log
org.pentaho.platform.api.engine.IServiceConfig
protected abstract List<org.pentaho.platform.api.engine.IServiceConfig>
Returns a list of the web service wrappers for this implmentationabstract void
init()
protected void
loadService
(org.pentaho.platform.api.engine.IServiceConfig wsDef) Loads a web service from a web service wrappervoid
Load the web services from the list of web service wrappersvoid
abstract boolean
setEnabled
(String name, boolean enabled) void
setSession
(org.pentaho.platform.api.engine.IPentahoSession session) void
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
-
Field Details
-
axisConfig
protected org.apache.axis2.engine.AxisConfiguration axisConfig -
session
protected org.pentaho.platform.api.engine.IPentahoSession session -
loaded
protected boolean loaded
-
-
Constructor Details
-
AbstractAxisConfigurator
public AbstractAxisConfigurator()
-
-
Method Details
-
getLogger
public abstract org.apache.commons.logging.Log getLogger()- Specified by:
getLogger
in classorg.pentaho.platform.engine.core.system.PentahoBase
-
addService
public abstract void addService(org.pentaho.platform.api.engine.IServiceConfig ws) -
reloadServices
public void reloadServices() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-
unloadServices
public void unloadServices() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-
getWebServiceDefinition
-
getAxisConfiguration
public org.apache.axis2.engine.AxisConfiguration getAxisConfiguration() throws org.apache.axis2.AxisFaultCreates the AxisConfiguration object using an XML document. Subclasses of this class must provide the XML via an input stream. The concrete implementation can store the XML file wherever it wants as we only need an InputStream- Specified by:
getAxisConfiguration
in interfaceorg.apache.axis2.engine.AxisConfigurator
- Throws:
org.apache.axis2.AxisFault
-
getConfigXml
-
setEnabled
- Throws:
org.apache.axis2.AxisFault
-
init
public abstract void init() -
addServiceEndPoints
protected abstract void addServiceEndPoints(org.apache.axis2.description.AxisService axisService) Adds any implementation-specific web service endpoints for a Axis service- Parameters:
axisService
- The Axis web service to add end points to
-
addTransports
protected abstract void addTransports(org.apache.axis2.description.AxisService axisService) Adds any implementation-specific transports for a Axis service- Parameters:
axisService
- The Axis web service to add end points to
-
getWebServiceDefinitions
Returns a list of the web service wrappers for this implmentation- Returns:
-
loadServices
public void loadServices()Load the web services from the list of web service wrappers- Specified by:
loadServices
in interfaceorg.apache.axis2.engine.AxisConfigurator
-
loadService
Loads a web service from a web service wrapper- Parameters:
wrapper
- Web service wrapper- Throws:
Exception
-
engageGlobalModules
public void engageGlobalModules() throws org.apache.axis2.AxisFaultAn AxisConfigurator method that we don't need- Specified by:
engageGlobalModules
in interfaceorg.apache.axis2.engine.AxisConfigurator
- Throws:
org.apache.axis2.AxisFault
-
cleanup
public void cleanup()An AxisConfigurator method that we don't need- Specified by:
cleanup
in interfaceorg.apache.axis2.engine.AxisConfigurator
-
setSession
public void setSession(org.pentaho.platform.api.engine.IPentahoSession session)
-