it.eng.spagobi.engines.birt
Class BirtReportServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
it.eng.spagobi.engines.birt.BirtReportServletODA
it.eng.spagobi.engines.birt.BirtReportServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class BirtReportServlet
- extends BirtReportServletODA
- See Also:
- Serialized Form
Method Summary |
java.sql.Connection |
getConnection(java.lang.String connectionName)
This methos see in spagbi.xml config file ( in section if a connection is configured
if null is pass to this method a default datasource is returned if exist |
private java.sql.Connection |
getConnectionFromJndiDS(org.dom4j.Node conDesc)
Get the connection from JNDI |
private java.sql.Connection |
getDirectConnection(org.dom4j.Node conDesc)
Get the connection using jdbc (connection string direct to database) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 |
BirtReportServlet
public BirtReportServlet()
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Overrides:
service
in class BirtReportServletODA
- Throws:
java.io.IOException
javax.servlet.ServletException
getConnection
public java.sql.Connection getConnection(java.lang.String connectionName)
- This methos see in spagbi.xml config file ( in section if a connection is configured
if null is pass to this method a default datasource is returned if exist
- Parameters:
connectionName
-
- Returns:
getConnectionFromJndiDS
private java.sql.Connection getConnectionFromJndiDS(org.dom4j.Node conDesc)
- Get the connection from JNDI
- Parameters:
conDesc
- Xml node describing data connection
- Returns:
- Connection to database
getDirectConnection
private java.sql.Connection getDirectConnection(org.dom4j.Node conDesc)
- Get the connection using jdbc (connection string direct to database)
- Parameters:
conDesc
- Xml node describing data connection
- Returns:
- Connection to database