uk.ac.ebi.intenz.webapp
Class IntenzWsEcServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by uk.ac.ebi.intenz.webapp.IntenzWsEcServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class IntenzWsEcServlet
extends javax.servlet.http.HttpServlet

Main servlet for IntEnz web services.

See Also:
Serialized Form

Constructor Summary
IntenzWsEcServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Serves an IntEnz resource (enzyme).
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void init()
          Creates the naming context, loads shared data from the database and creates a pool of XML exporters.
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntenzWsEcServlet

public IntenzWsEcServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Creates the naming context, loads shared data from the database and creates a pool of XML exporters.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     IOException
Serves an IntEnz resource (enzyme). The requested URL must be of the form
{intenz-ws}/EC/{ecNumber}[.{format}]
where

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

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse res)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
HttpServlet.doPost(HttpServletRequest request, HttpServletResponse response)


Copyright © 2013 EMBL-EBI. All Rights Reserved.