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
debug
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doChart
(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) 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) void
doGet
(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 intoUserDetailsRoleListService
instance for users and roles. Make static call intoPentahoAclEntry
for ACLs. Construct SOAP response.void
doGetFixMe
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
doOtherChart
(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) protected void
doPieChart
(String actionPath, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, OutputStream outputStream, org.pentaho.platform.api.engine.IPentahoSession userSession) protected void
doPost
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected org.dom4j.Document
getACLs()
Returns XML for list of ACLs.protected String
getDetailsParameter
(javax.servlet.http.HttpServletRequest request) Returns parameter nameddetails
either from query string or body.org.apache.commons.logging.Log
protected Map
getPayloadAsString
(javax.servlet.http.HttpServletRequest request) protected org.dom4j.Document
getRoles()
Returns XML for list of roles.protected org.dom4j.Document
getUsers()
Returns XML for list of users.protected boolean
hasActionInBody
(javax.servlet.http.HttpServletRequest request) Returns true if required parameter is in body of request.protected boolean
hasActionInQueryString
(javax.servlet.http.HttpServletRequest request) Returns true if required parameter namedaction
is in query string.protected boolean
isSecurityDetailsRequest
(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, warn
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods 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:
getLogger
in 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.ServletException
IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
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
UserDetailsRoleListService
instance for users and roles. - Make static call into
PentahoAclEntry
for ACLs. - Construct SOAP response.
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
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 nameddetails
either 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 namedaction
is in query string. -
getParameterMapFromPayload
-
getUsers
Returns XML for list of users.- Throws:
javax.servlet.ServletException
IOException
-
getRoles
Returns XML for list of roles.- Throws:
javax.servlet.ServletException
IOException
-
getACLs
Returns XML for list of ACLs.- Throws:
javax.servlet.ServletException
IOException
-