org.activemath.webapp.servlets
Class ServiceServletPrimitive

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.activemath.webapp.servlets.ServiceServletPrimitive
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ServiceServletPrimitive
extends HttpServlet

Beginning of the logic to achieve web-services within ActiveMath. Currently is focused on elementary messages with simple String-based post requests.

See Also:
Serialized Form

Constructor Summary
ServiceServletPrimitive()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          When requested with no path-info, just outputs an html file with a link to each service.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Currently simply loads the lines of the request (until a line with "." only is received), invokes the registered service, and responds the returned strings as a set of lines.
static void main(String[] args)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceServletPrimitive

public ServiceServletPrimitive()
Method Detail

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Currently simply loads the lines of the request (until a line with "." only is received), invokes the registered service, and responds the returned strings as a set of lines.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
When requested with no path-info, just outputs an html file with a link to each service.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception