uk.ac.ebi.intenz.webapp
Class IntenzWsEcServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
IntenzWsEcServlet
public IntenzWsEcServlet()
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
{intenz-ws}
is the context path to the webapp.
EC
is the path to this servlet (defined in web.xml).
{ecNumber}
is the complete EC number of the enzyme.
Note that preliminary EC numbers are supported, but classes,
subclasses, subsubclasses or partial EC numbers are not.
{format}
is the extension corresponding to the
requested format (see ResponseFormat
enumeration). This can
be replaced by a format
request parameter or a valid
Accept
HTTP header.
- 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.