org.pentaho.platform.web.servlet
Class HttpWebService

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.pentaho.platform.web.servlet.ServletBase
              extended by org.pentaho.platform.web.servlet.HttpWebService
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ILogger

public class HttpWebService
extends ServletBase

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:
Serialized Form

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
HttpWebService()
           
 
Method Summary
 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 into UserDetailsRoleListService instance for users and roles. Make static call into PentahoAclEntry for ACLs. Construct SOAP response.
 void doGetFixMe(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.commons.logging.Log getLogger()
           
 String getPayloadAsString(javax.servlet.http.HttpServletRequest request)
           
 void writeDocumentAsSoapResponse(OutputStream outputStream, org.dom4j.Document doc)
           
 void writeStringAsSoapResponse(OutputStream outputStream, String doc)
           
 
Methods inherited from class org.pentaho.platform.web.servlet.ServletBase
debug, debug, error, error, fatal, fatal, getLoggingLevel, getObjectName, info, info, setLoggingLevel, trace, trace, warn, warn
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpWebService

public HttpWebService()
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()
Specified by:
getLogger in class ServletBase

getPayloadAsString

public String getPayloadAsString(javax.servlet.http.HttpServletRequest request)
                          throws IOException
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

writeDocumentAsSoapResponse

public void writeDocumentAsSoapResponse(OutputStream outputStream,
                                        org.dom4j.Document doc)
                                 throws IOException
Throws:
IOException

writeStringAsSoapResponse

public void writeStringAsSoapResponse(OutputStream outputStream,
                                      String doc)
                               throws IOException
Throws:
IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  IOException
  1. Make sure this request has required parameters either on query string or in body of post.
  2. Make calls into UserDetailsRoleListService instance for users and roles.
  3. Make static call into PentahoAclEntry for ACLs.
  4. Construct SOAP response.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException