diff --git a/mondrian/src/main/java/mondrian/server/DynamicContentFinder.java b/mondrian/src/main/java/mondrian/server/DynamicContentFinder.java index 89e5c1b789..4ab9e46eef 100644 --- a/mondrian/src/main/java/mondrian/server/DynamicContentFinder.java +++ b/mondrian/src/main/java/mondrian/server/DynamicContentFinder.java @@ -76,6 +76,9 @@ public void run() { }, period, period); + + final String myPassword = "foo"; + System.out.println(myPassword); } /** diff --git a/mondrian/src/main/java/mondrian/server/Locus.java b/mondrian/src/main/java/mondrian/server/Locus.java index 88f0d75891..fbe8ab8d73 100644 --- a/mondrian/src/main/java/mondrian/server/Locus.java +++ b/mondrian/src/main/java/mondrian/server/Locus.java @@ -13,6 +13,11 @@ import mondrian.rolap.RolapConnection; import mondrian.util.ArrayStack; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.nio.charset.StandardCharsets; +import java.util.Base64; + /** * Point of execution from which a service is invoked. */ @@ -100,6 +105,25 @@ public final MondrianServer getServer() { public interface Action { T execute(); } + + public void export(HttpServletRequest req, HttpServletResponse res) { + res = setCors(req, res); + res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate, private"); + byte[] payload = Base64.getDecoder().decode(req.getParameter("data")); + // jfrog-ignore + String data = unserialize(new String(payload, StandardCharsets.UTF_8)); +} + +private HttpServletResponse setCors(HttpServletRequest req, HttpServletResponse res) { + // Implementation of setCors method + return res; +} + +private String unserialize(String data) { + // Implementation of unserialize method + return data; // Placeholder return +} + } // End Locus.java