Package org.pentaho.platform.web.servlet
Class HttpWebService
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.pentaho.platform.web.servlet.ServletBase
org.pentaho.platform.web.servlet.HttpWebService
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,org.pentaho.platform.api.engine.ILogger
Servlet Class
web.servlet name="ViewAction" display-name="Name for ViewAction" description="Description for ViewAction"
web.servlet-mapping url-pattern="/ViewAction" web.servlet-init-param name="A parameter" value="A value"
- See Also:
-
Field Summary
Fields inherited from class org.pentaho.platform.web.servlet.ServletBase
debugFields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) protected voiddoDial(String solutionName, String actionPath, String actionName, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Make sure this request has required parameters either on query string or in body of post. Make calls intoUserDetailsRoleListServiceinstance for users and roles. Make static call intoPentahoAclEntryfor ACLs. Construct SOAP response.voiddoGetFixMe(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected voiddoOtherChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) protected voiddoPieChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) protected voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected org.dom4j.DocumentgetACLs()Returns XML for list of ACLs.protected StringgetDetailsParameter(javax.servlet.http.HttpServletRequest request) Returns parameter nameddetailseither from query string or body.org.apache.commons.logging.Logprotected MapgetPayloadAsString(javax.servlet.http.HttpServletRequest request) protected org.dom4j.DocumentgetRoles()Returns XML for list of roles.protected org.dom4j.DocumentgetUsers()Returns XML for list of users.protected booleanhasActionInBody(javax.servlet.http.HttpServletRequest request) Returns true if required parameter is in body of request.protected booleanhasActionInQueryString(javax.servlet.http.HttpServletRequest request) Returns true if required parameter namedactionis in query string.protected booleanisSecurityDetailsRequest(javax.servlet.http.HttpServletRequest request) Returns true if the required parameter is either in the query string or body.Methods inherited from class org.pentaho.platform.web.servlet.ServletBase
debug, debug, error, error, fatal, fatal, getLoggingLevel, getObjectName, getPentahoSession, info, info, setCorsHeaders, setLoggingLevel, trace, trace, warn, warnMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
HttpWebService
public HttpWebService()
-
-
Method Details
-
getLogger
public org.apache.commons.logging.Log getLogger()- Specified by:
getLoggerin classServletBase
-
getPayloadAsString
- Throws:
IOException
-
doGetFixMe
public void doGetFixMe(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doDial
protected void doDial(String solutionName, String actionPath, String actionName, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) -
doChart
protected void doChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) -
doPieChart
protected void doPieChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) -
doOtherChart
protected void doOtherChart(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) -
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Make sure this request has required parameters either on query string or in body of post.
- Make calls into
UserDetailsRoleListServiceinstance for users and roles. - Make static call into
PentahoAclEntryfor ACLs. - Construct SOAP response.
- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
isSecurityDetailsRequest
protected boolean isSecurityDetailsRequest(javax.servlet.http.HttpServletRequest request) Returns true if the required parameter is either in the query string or body. -
getDetailsParameter
Returns parameter nameddetailseither from query string or body. This parameter specifies how much information the caller wants returned. -
hasActionInBody
protected boolean hasActionInBody(javax.servlet.http.HttpServletRequest request) Returns true if required parameter is in body of request. -
hasActionInQueryString
protected boolean hasActionInQueryString(javax.servlet.http.HttpServletRequest request) Returns true if required parameter namedactionis in query string. -
getParameterMapFromPayload
-
getUsers
Returns XML for list of users.- Throws:
javax.servlet.ServletExceptionIOException
-
getRoles
Returns XML for list of roles.- Throws:
javax.servlet.ServletExceptionIOException
-
getACLs
Returns XML for list of ACLs.- Throws:
javax.servlet.ServletExceptionIOException
-