|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
mondrian.xmla.XmlaServlet
public abstract class XmlaServlet
Base XML/A servlet.
| Nested Class Summary | |
|---|---|
static class |
XmlaServlet.Phase
|
| Field Summary | |
|---|---|
protected String |
charEncoding
|
protected static org.apache.log4j.Logger |
LOGGER
|
static String |
PARAM_CALLBACKS
|
static String |
PARAM_CHAR_ENCODING
|
static String |
PARAM_DATASOURCES_CONFIG
|
static String |
PARAM_OPTIONAL_DATASOURCE_CONFIG
|
protected XmlaHandler |
xmlaHandler
|
| Constructor Summary | |
|---|---|
XmlaServlet()
|
|
| Method Summary | |
|---|---|
protected void |
addCallback(XmlaRequestCallback callback)
Registers a callback. |
protected abstract XmlaHandler.ConnectionFactory |
createConnectionFactory(javax.servlet.ServletConfig servletConfig)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Main entry for HTTP post method |
static boolean |
getBooleanInitParameter(javax.servlet.ServletConfig servletConfig,
String paramName)
Returns true if paramName's value is not null and 'true'. |
protected List<XmlaRequestCallback> |
getCallbacks()
Returns the list of callbacks. |
static boolean |
getParameter(javax.servlet.http.HttpServletRequest req,
String paramName)
|
protected XmlaHandler |
getXmlaHandler()
Gets (creating if needed) the XmlaHandler. |
protected abstract void |
handleFault(javax.servlet.http.HttpServletResponse response,
byte[][] responseSoapParts,
XmlaServlet.Phase phase,
Throwable t)
Implement to application specified handler of SOAP fualt. |
protected abstract void |
handleSoapBody(javax.servlet.http.HttpServletResponse response,
Element[] requestSoapParts,
byte[][] responseSoapParts,
Map<String,Object> context)
Implement to handle XML/A request. |
protected abstract void |
handleSoapHeader(javax.servlet.http.HttpServletResponse response,
Element[] requestSoapParts,
byte[][] responseSoapParts,
Map<String,Object> context)
Implement to handle application specified SOAP header. |
void |
init(javax.servlet.ServletConfig servletConfig)
Initializes servlet and XML/A handler. |
protected void |
initCallbacks(javax.servlet.ServletConfig servletConfig)
Registers callbacks configured in web.xml. |
protected void |
initCharEncodingHandler(javax.servlet.ServletConfig servletConfig)
Initialize character encoding |
protected abstract void |
marshallSoapMessage(javax.servlet.http.HttpServletResponse response,
byte[][] responseSoapParts,
Enumeration.ResponseMimeType responseMimeType)
Implement to provide application specified SOAP marshalling algorithm. |
protected abstract void |
unmarshallSoapMessage(javax.servlet.http.HttpServletRequest request,
Element[] requestSoapParts)
Implement to provide application specified SOAP unmarshalling algorithm. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger LOGGER
public static final String PARAM_DATASOURCES_CONFIG
public static final String PARAM_OPTIONAL_DATASOURCE_CONFIG
public static final String PARAM_CHAR_ENCODING
public static final String PARAM_CALLBACKS
protected XmlaHandler xmlaHandler
protected String charEncoding
| Constructor Detail |
|---|
public XmlaServlet()
| Method Detail |
|---|
public static boolean getBooleanInitParameter(javax.servlet.ServletConfig servletConfig,
String paramName)
public static boolean getParameter(javax.servlet.http.HttpServletRequest req,
String paramName)
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
protected abstract XmlaHandler.ConnectionFactory createConnectionFactory(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected XmlaHandler getXmlaHandler()
protected final void addCallback(XmlaRequestCallback callback)
protected final List<XmlaRequestCallback> getCallbacks()
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
protected abstract void unmarshallSoapMessage(javax.servlet.http.HttpServletRequest request,
Element[] requestSoapParts)
throws XmlaException
XmlaException
protected abstract void handleSoapHeader(javax.servlet.http.HttpServletResponse response,
Element[] requestSoapParts,
byte[][] responseSoapParts,
Map<String,Object> context)
throws XmlaException
XmlaException
protected abstract void handleSoapBody(javax.servlet.http.HttpServletResponse response,
Element[] requestSoapParts,
byte[][] responseSoapParts,
Map<String,Object> context)
throws XmlaException
XmlaException
protected abstract void marshallSoapMessage(javax.servlet.http.HttpServletResponse response,
byte[][] responseSoapParts,
Enumeration.ResponseMimeType responseMimeType)
throws XmlaException
XmlaException
protected abstract void handleFault(javax.servlet.http.HttpServletResponse response,
byte[][] responseSoapParts,
XmlaServlet.Phase phase,
Throwable t)
protected void initCharEncodingHandler(javax.servlet.ServletConfig servletConfig)
protected void initCallbacks(javax.servlet.ServletConfig servletConfig)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||