Skip to content

Commit

Permalink
MONDRIAN:
Browse files Browse the repository at this point in the history
* Update web.xml to new servlet class name
* Refactor according to Richard's suggestion

[git-p4: depot-paths = "//open/mondrian/": change = 4937]
  • Loading branch information
goncha committed Jan 4, 2006
1 parent d444a9f commit 5ae8e89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/main/mondrian/xmla/impl/DefaultXmlaServlet.java
Expand Up @@ -46,18 +46,21 @@
public class DefaultXmlaServlet extends XmlaServlet {

private static final Logger LOGGER = Logger.getLogger(DefaultXmlaServlet.class);
private static final String EOL = System.getProperty("line.separator", "\n");
protected static final String EOL = System.getProperty("line.separator", "\n");

private DocumentBuilderFactory domFactory = null;

public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
domFactory = getDocumentBuilderFactory();
}

// init: domFactory
domFactory = DocumentBuilderFactory.newInstance();
domFactory.setIgnoringComments(true);
domFactory.setIgnoringElementContentWhitespace(true);
domFactory.setNamespaceAware(true);
protected DocumentBuilderFactory getDocumentBuilderFactory() {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setIgnoringComments(true);
factory.setIgnoringElementContentWhitespace(true);
factory.setNamespaceAware(true);
return factory;
}

protected Element[] unmarshallSoapMessage(InputStream inputStream) throws Exception {
Expand Down
2 changes: 1 addition & 1 deletion webapp/WEB-INF/web.xml
Expand Up @@ -40,7 +40,7 @@ You must accept the terms of that agreement to use this software.

<servlet>
<servlet-name>MondrianXmlaServlet</servlet-name>
<servlet-class>mondrian.xmla.XmlaServlet</servlet-class>
<servlet-class>mondrian.xmla.impl.DefaultXmlaServlet</servlet-class>
<init-param>
<param-name>DataSourcesConfig</param-name>
<param-value>datasources.xml</param-value>
Expand Down

0 comments on commit 5ae8e89

Please sign in to comment.