Package mondrian.xmla

Class XmlaHandler

java.lang.Object
mondrian.xmla.XmlaHandler

public class XmlaHandler extends Object
An XmlaHandler responds to XML for Analysis (XML/A) requests.
Since:
27 April, 2003
Author:
jhyde, Gang Chen
  • Field Details

  • Constructor Details

  • Method Details

    • getExtra

      public static XmlaHandler.XmlaExtra getExtra(org.olap4j.OlapConnection connection)
    • isValidXsdInt

      public static boolean isValidXsdInt(long l)
    • getConnection

      public org.olap4j.OlapConnection getConnection(XmlaRequest request, Map<String,String> propMap) throws org.olap4j.OlapException
      Returns a new OlapConnection opened with the credentials specified in the XMLA request or an existing connection if one can be found associated with the request session id.
      Parameters:
      request - Request
      propMap - Extra properties
      Throws:
      org.olap4j.OlapException
    • process

      public void process(XmlaRequest request, XmlaResponse response) throws XmlaException
      Processes a request.
      Parameters:
      request - XML request, for example, "<SOAP-ENV:Envelope ...>".
      response - Destination for response
      Throws:
      XmlaException - on error
    • getConnection

      protected org.olap4j.OlapConnection getConnection(String catalog, String schema, String role) throws XmlaException
      Gets a Connection given a catalog (and implicitly the catalog's data source) and the name of a user role.

      If you want to pass in a role object, and you are making the call within the same JVM (i.e. not RPC), register the role using MondrianServer.getLockBox() and pass in the moniker for the generated lock box entry. The server will retrieve the role from the moniker.

      Parameters:
      catalog - Catalog name
      schema - Schema name
      role - User role name
      Returns:
      Connection
      Throws:
      XmlaException - If error occurs
    • getConnection

      protected org.olap4j.OlapConnection getConnection(String catalog, String schema, String role, Properties props) throws XmlaException
      Gets a Connection given a catalog (and implicitly the catalog's data source) and the name of a user role.

      If you want to pass in a role object, and you are making the call within the same JVM (i.e. not RPC), register the role using MondrianServer.getLockBox() and pass in the moniker for the generated lock box entry. The server will retrieve the role from the moniker.

      Parameters:
      catalog - Catalog name
      schema - Schema name
      role - User role name
      props - Properties to pass down to the native driver.
      Returns:
      Connection
      Throws:
      XmlaException - If error occurs