|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.xmla.XmlaHandler
public class XmlaHandler
An XmlaHandler
responds to XML for Analysis (XML/A) requests.
Nested Class Summary | |
---|---|
(package private) static class |
XmlaHandler.CellColumnHandler
Callback to handle one column, representing the combination of a level and a property (e.g. |
(package private) static class |
XmlaHandler.Column
|
(package private) static class |
XmlaHandler.ColumnHandler
|
(package private) static class |
XmlaHandler.MDDataSet
|
(package private) static class |
XmlaHandler.MDDataSet_Multidimensional
|
(package private) static class |
XmlaHandler.MDDataSet_Tabular
|
(package private) static class |
XmlaHandler.MemberColumnHandler
Callback to handle one column, representing the combination of a level and a property (e.g. |
(package private) static class |
XmlaHandler.TabularRowSet
|
(package private) static class |
XmlaHandler.ValueInfo
Takes a DataType String ( null, Integer, Numeric or non-null ) and Value Object (Integer, Double, String, other) and canonicalizes them to XSD data type and corresponding object. |
Field Summary | |
---|---|
static String |
XSD_BOOLEAN
|
static String |
XSD_BYTE
|
static byte |
XSD_BYTE_MAX_INCLUSIVE
|
static byte |
XSD_BYTE_MIN_INCLUSIVE
|
static String |
XSD_DECIMAL
|
static String |
XSD_DOUBLE
|
static String |
XSD_INT
|
static int |
XSD_INT_MAX_INCLUSIVE
|
static int |
XSD_INT_MIN_INCLUSIVE
|
static String |
XSD_INTEGER
|
static String |
XSD_LONG
|
static long |
XSD_LONG_MAX_INCLUSIVE
|
static long |
XSD_LONG_MIN_INCLUSIVE
|
static String |
XSD_SHORT
|
static short |
XSD_SHORT_MAX_INCLUSIVE
|
static short |
XSD_SHORT_MIN_INCLUSIVE
|
static String |
XSD_STRING
|
static String |
XSD_UNSIGNED_INT
|
Constructor Summary | |
---|---|
XmlaHandler(DataSourcesConfig.DataSources dataSources,
CatalogLocator catalogLocator,
String prefix)
Creates an XmlaHandler . |
Method Summary | |
---|---|
DataSourcesConfig.Catalog |
getCatalog(DataSourcesConfig.DataSource ds,
String catalogName)
Get the DataSourcesConfig.Catalog with the given catalog name from the DataSource's catalogs if there is a match and otherwise return null. |
DataSourcesConfig.Catalog |
getCatalog(XmlaRequest request,
DataSourcesConfig.DataSource ds,
boolean required)
Returns the DataSourcesConfig.Catalog associated with the catalog name that is part of the request properties or null if there is no catalog with that name. |
DataSourcesConfig.Catalog[] |
getCatalogs(XmlaRequest request,
DataSourcesConfig.DataSource ds)
Get array of DataSourcesConfig.Catalog returning only one entry if the catalog was specified as a property in the request or all catalogs associated with the Datasource if there was no catalog property. |
protected Connection |
getConnection(DataSourcesConfig.Catalog catalog,
Role role,
String roleName)
Gets a Connection given a catalog (and implicitly the catalog's data source) and a user role. |
DataSourcesConfig.DataSource |
getDataSource(XmlaRequest request)
Returns the DataSource associated with the request property or null if one was not specified. |
Map<String,DataSourcesConfig.DataSource> |
getDataSourceEntries()
|
static boolean |
isValidXsdInt(long l)
|
static void |
main(String[] args)
|
void |
process(XmlaRequest request,
XmlaResponse response)
Processes a request. |
(package private) static void |
writeDatasetXmlSchema(SaxWriter writer,
mondrian.xmla.XmlaHandler.SetType settype)
Computes the XML Schema for a dataset. |
(package private) static void |
writeEmptyDatasetXmlSchema(SaxWriter writer,
mondrian.xmla.XmlaHandler.SetType setType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XSD_BOOLEAN
public static final String XSD_STRING
public static final String XSD_UNSIGNED_INT
public static final String XSD_BYTE
public static final byte XSD_BYTE_MAX_INCLUSIVE
public static final byte XSD_BYTE_MIN_INCLUSIVE
public static final String XSD_SHORT
public static final short XSD_SHORT_MAX_INCLUSIVE
public static final short XSD_SHORT_MIN_INCLUSIVE
public static final String XSD_INT
public static final int XSD_INT_MAX_INCLUSIVE
public static final int XSD_INT_MIN_INCLUSIVE
public static final String XSD_LONG
public static final long XSD_LONG_MAX_INCLUSIVE
public static final long XSD_LONG_MIN_INCLUSIVE
public static final String XSD_DOUBLE
public static final String XSD_DECIMAL
public static final String XSD_INTEGER
Constructor Detail |
---|
public XmlaHandler(DataSourcesConfig.DataSources dataSources, CatalogLocator catalogLocator, String prefix)
XmlaHandler
.
dataSources
- Data sourcescatalogLocator
- Catalog locatorprefix
- XML Namespace. Typical value is "xmla", but a value of
"cxmla" works around an Internet Explorer 7 bugMethod Detail |
---|
public static boolean isValidXsdInt(long l)
public Map<String,DataSourcesConfig.DataSource> getDataSourceEntries()
public void process(XmlaRequest request, XmlaResponse response) throws XmlaException
request
- XML request, for example, "response
- Destination for response
XmlaException
- on errorstatic void writeDatasetXmlSchema(SaxWriter writer, mondrian.xmla.XmlaHandler.SetType settype)
writer
- SAX writersettype
- rowset or dataset?RowsetDefinition.writeRowsetXmlSchema(SaxWriter)
static void writeEmptyDatasetXmlSchema(SaxWriter writer, mondrian.xmla.XmlaHandler.SetType setType)
protected Connection getConnection(DataSourcesConfig.Catalog catalog, Role role, String roleName) throws XmlaException
catalog
- Catalogrole
- User roleroleName
- User role name
XmlaException
- If error occurspublic DataSourcesConfig.DataSource getDataSource(XmlaRequest request) throws XmlaException
request
- Request
XmlaException
- If error occurspublic DataSourcesConfig.Catalog getCatalog(DataSourcesConfig.DataSource ds, String catalogName)
ds
- DataSourcecatalogName
- Catalog name
public DataSourcesConfig.Catalog[] getCatalogs(XmlaRequest request, DataSourcesConfig.DataSource ds)
request
- Requestds
- DataSource
public DataSourcesConfig.Catalog getCatalog(XmlaRequest request, DataSourcesConfig.DataSource ds, boolean required) throws XmlaException
request
- Requestds
- DataSourcerequired
- Whether to throw an error if catalog name is not
specified
XmlaException
- If error occurspublic static void main(String[] args)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |