org.activemath.webapp.servlets
Class ServiceServletPrimitive
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
| 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 |
ServiceServletPrimitive
public ServiceServletPrimitive()
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