static class XmlaBaseTestCase.CallBack extends Object implements XmlaRequestCallback
XmlaRequestCallback.Helper
AUTHORIZATION, EXPECT, EXPECT_100_CONTINUE
Constructor and Description |
---|
CallBack() |
Modifier and Type | Method and Description |
---|---|
String |
generateSessionId(Map<String,Object> context)
The Callback is requested to generate a sequence id string.
|
void |
init(javax.servlet.ServletConfig servletConfig) |
void |
postAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
byte[][] responseSoapParts,
Map<String,Object> context)
This is called after all Mondrian processing (DISCOVER/EXECUTE) has
occurred.
|
void |
preAction(javax.servlet.http.HttpServletRequest request,
Element[] requestSoapParts,
Map<String,Object> context)
This is called after the headers have been process but before the
body (DISCOVER/EXECUTE) has been processed.
|
boolean |
processHttpHeader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> context)
Process the request header items.
|
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface XmlaRequestCallback
javax.servlet.ServletException
public boolean processHttpHeader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,Object> context) throws Exception
XmlaRequestCallback
Note that it is upto the XMLA client to determine whether or not there is an Expect header entry (ADOMD.NET seems to like to do this).
processHttpHeader
in interface XmlaRequestCallback
Exception
public void preAction(javax.servlet.http.HttpServletRequest request, Element[] requestSoapParts, Map<String,Object> context) throws Exception
XmlaRequestCallback
preAction
in interface XmlaRequestCallback
Exception
public String generateSessionId(Map<String,Object> context)
XmlaRequestCallback
null
if they do not want
to generate a custom session ID, in which case, the default algorithm
to generate session IDs will be used.generateSessionId
in interface XmlaRequestCallback
context
- The context of this query.null
.public void postAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, byte[][] responseSoapParts, Map<String,Object> context) throws Exception
XmlaRequestCallback
postAction
in interface XmlaRequestCallback
Exception