public class ProxyServlet extends ServletBase
<servlet>
<servlet-name>ViewAction</servlet-name>
<servlet-class>com.pentaho.ui.servlet.ProxyServlet</servlet-class>
<init-param>
<param-name>ProxyURL</param-name>
<param-value>http://my.remoteserver.com:8080/pentaho</param-value>
</init-param>
</servlet>
In the above example, all requests to /ViewAction will be forwarded to the ViewAction Servlet running on the Hitachi Vantara server atmy.remoteserver.com:8080
NOTES:
For this to be useful, both Pentaho servers should be using the same database repository.
The recieving server should have the ProxyTrustingFilter enabled to handle authicentation.
This Servlet only works with GET requests. All requests in the Pentaho BI Platform are currently gets.
ProxyTrustingFilter,
Serialized FormdebugACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN| Constructor and Description |
|---|
ProxyServlet()
Base Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doProxy(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.commons.logging.Log |
getLogger() |
void |
init(javax.servlet.ServletConfig servletConfig) |
protected void |
service(javax.servlet.http.HttpServletRequest arg0,
javax.servlet.http.HttpServletResponse arg1) |
debug, debug, error, error, fatal, fatal, getLoggingLevel, getObjectName, getPentahoSession, info, info, setCorsHeaders, setLoggingLevel, trace, trace, warn, warndoDelete, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic org.apache.commons.logging.Log getLogger()
getLogger in class ServletBasepublic void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doProxy(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionprotected void service(javax.servlet.http.HttpServletRequest arg0,
javax.servlet.http.HttpServletResponse arg1)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected 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.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2017 Hitachi Vantara. All rights reserved.