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 Formdebug
ACTIVITY_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, warn
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
public org.apache.commons.logging.Log getLogger()
getLogger
in class ServletBase
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doProxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
protected void service(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2017 Hitachi Vantara. All rights reserved.