org.pentaho.platform.web.servlet
Class HttpWebService

java.lang.Object
  extended by HttpServlet
      extended by org.pentaho.platform.web.servlet.ServletBase
          extended by org.pentaho.platform.web.servlet.HttpWebService
All Implemented Interfaces:
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"


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(HttpServletRequest request, 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(HttpServletRequest request, HttpServletResponse response)
           
 Log getLogger()
           
 String getPayloadAsString(HttpServletRequest request)
           
 void writeDocumentAsSoapResponse(OutputStream outputStream, 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpWebService

public HttpWebService()
Method Detail

getLogger

public Log getLogger()
Specified by:
getLogger in class ServletBase

getPayloadAsString

public String getPayloadAsString(HttpServletRequest request)
                          throws IOException
Throws:
IOException

doGetFixMe

public void doGetFixMe(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Throws:
ServletException
IOException

writeDocumentAsSoapResponse

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

writeStringAsSoapResponse

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

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws 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.

Throws:
ServletException
IOException