|
|||||||||
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
it.eng.spagobi.engines.jasperreport.JasperReportServlet
public class JasperReportServlet
Process jasper report execution requests and returns bytes of the filled reports
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
logger
Logger component |
private java.security.PublicKey |
publicKeyDSASbi
SpagoBI Public Key |
private boolean |
securityAble
security check able or not |
Constructor Summary | |
---|---|
JasperReportServlet()
|
Method Summary | |
---|---|
private boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Authenticate the caller (must be SpagoBI) |
private byte[] |
decodeBase64(java.lang.String encoded)
Decode a Base64 String into a byte array |
java.sql.Connection |
getConnection(java.lang.String connectionName)
This method, based on the engine-config.xml configuration, gets a database connection and return it |
private java.sql.Connection |
getConnectionFromJndiDS(it.eng.spago.base.SourceBean connectionConfig)
Get the connection from JNDI |
private java.sql.Connection |
getDirectConnection(it.eng.spago.base.SourceBean connectionConfig)
Get the connection using jdbc |
private java.security.PublicKey |
getPublicKey()
Get the SpagoBI Public Key for a DSA alghoritm |
void |
init(javax.servlet.ServletConfig config)
Initialize the engine |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
process jasper report execution requests |
private boolean |
verifySignature(byte[] tokenclear,
byte[] tokensign)
Verify the signature |
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 |
Field Detail |
---|
private static transient org.apache.log4j.Logger logger
private transient java.security.PublicKey publicKeyDSASbi
private transient boolean securityAble
Constructor Detail |
---|
public JasperReportServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
public java.sql.Connection getConnection(java.lang.String connectionName)
connectionName
- Logical name of the connection configuration (defined into engine-config.xml)
private java.sql.Connection getConnectionFromJndiDS(it.eng.spago.base.SourceBean connectionConfig)
connectionConfig
- SourceBean describing data connection
private java.sql.Connection getDirectConnection(it.eng.spago.base.SourceBean connectionConfig)
connectionConfig
- SourceBean describing data connection
private boolean authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- HttpRequestresponse
- HttpResponse
private java.security.PublicKey getPublicKey()
private byte[] decodeBase64(java.lang.String encoded)
encoded
- String encoded with Base64 algorithm
private boolean verifySignature(byte[] tokenclear, byte[] tokensign)
tokenclear
- Clear datatokensign
- Signed data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |