Class AxisWebServiceRequestDispatcher

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.engine.IContentGenerator, org.pentaho.platform.api.engine.ILogger
    Direct Known Subclasses:
    AxisServiceExecutor, AxisServiceWsdlGenerator

    public abstract class AxisWebServiceRequestDispatcher
    extends AbstractAxisServiceContentGenerator
    This class dispatches requests coming from GenericServlet and determines which AxisService should be invoked. It then passes this information, along with all the Axis content, to a subclass to do the execution.
    Author:
    jamesdixon
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.pentaho.platform.engine.services.solution.BaseContentGenerator

        callbacks, instanceId, itemName, messages, outputHandler, parameterProviders, urlFactory, userSession
      • 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
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void createContent​(org.apache.axis2.engine.AxisConfiguration axisConfiguration, org.apache.axis2.context.ConfigurationContext context, OutputStream out)
      Parses the path parameter to find the web service name, makes sure it is valid, and the calls the current subclass to create the required content for the specified web service
      protected abstract void createServiceContent​(org.apache.axis2.description.AxisService axisService, String operationName, org.apache.axis2.engine.AxisConfiguration axisConfiguration, org.apache.axis2.context.ConfigurationContext context, OutputStream out)
      Processes the current request for the provided Axis service
      • Methods inherited from class org.pentaho.platform.engine.services.solution.SimpleContentGenerator

        createContent, getMimeType
      • Methods inherited from class org.pentaho.platform.engine.services.solution.BaseContentGenerator

        getCallback, getItemName, getLogger, setCallbacks, setInstanceId, setItemName, setMessagesList, setOutputHandler, setParameterProviders, setSession, setUrlFactory
      • 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 interface org.pentaho.platform.api.engine.ILogger

        debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
    • Constructor Detail

      • AxisWebServiceRequestDispatcher

        public AxisWebServiceRequestDispatcher()
    • Method Detail

      • createContent

        public void createContent​(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
                                  org.apache.axis2.context.ConfigurationContext context,
                                  OutputStream out)
                           throws Exception
        Parses the path parameter to find the web service name, makes sure it is valid, and the calls the current subclass to create the required content for the specified web service
        Specified by:
        createContent in class AbstractAxisServiceContentGenerator
        Parameters:
        axisConfiguration - AxisConfiguration
        context - ConfigurationContext
        out - The output stream to write to
        Throws:
        Exception
      • createServiceContent

        protected abstract void createServiceContent​(org.apache.axis2.description.AxisService axisService,
                                                     String operationName,
                                                     org.apache.axis2.engine.AxisConfiguration axisConfiguration,
                                                     org.apache.axis2.context.ConfigurationContext context,
                                                     OutputStream out)
                                              throws Exception
        Processes the current request for the provided Axis service
        Parameters:
        axisService - The Axis web service
        operationName - The name of the operation to perform, if known
        axisConfiguration - The current configuration
        context - The current context
        out - The output stream for content to be written to
        Throws:
        Exception