Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git-p4: depot-paths = "//open/mondrian/": change = 583]
- Loading branch information
1 parent
0fec48b
commit 4b0861b
Showing
7 changed files
with
169 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2003-2003 Julian Hyde | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
// jhyde, May 2, 2003 | ||
*/ | ||
package mondrian.xmla; | ||
|
||
import javax.servlet.ServletException; | ||
import javax.servlet.http.HttpServlet; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
import java.io.IOException; | ||
import java.io.PrintWriter; | ||
|
||
/** | ||
* An <code>XmlaServlet</code> responds to XML for Analysis SOAP requests. | ||
* | ||
* @see XmlaMediator | ||
* | ||
* @author jhyde | ||
* @since 27 April, 2003 | ||
* @version $Id$ | ||
*/ | ||
public class XmlaServlet extends HttpServlet { | ||
private final XmlaMediator mediator = new XmlaMediator(); | ||
|
||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
process(request, response); | ||
} | ||
|
||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
process(request, response); | ||
} | ||
|
||
public void process(HttpServletRequest request, HttpServletResponse response) { | ||
final String soapRequest = request.getParameter("SOAPRequest"); | ||
final PrintWriter printWriter; | ||
try { | ||
printWriter = response.getWriter(); | ||
} catch (IOException e) { | ||
return; | ||
} | ||
mediator.process(soapRequest, printWriter); | ||
} | ||
} | ||
|
||
// End XmlaServlet.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<%@ page import="mondrian.xmla.XmlaMediator, | ||
mondrian.xmla.XmlaServlet, | ||
java.io.OutputStream"%> | ||
<%@ page language="java" %> | ||
<%-- | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// (C) Copyright 2003-2003 Julian Hyde | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
// Julian Hyde, 3 June, 2003 | ||
--%> | ||
<%! | ||
final XmlaMediator mediator = new XmlaMediator(); | ||
%> | ||
<% | ||
final ServletContext servletContext = config.getServletContext(); | ||
final RequestDispatcher dispatcher = servletContext.getNamedDispatcher("MondrianXmlaServlet"); | ||
dispatcher.forward(request, response); | ||
%> |