|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.oclc.da.gdfr.registryprototype.atom.IWSAAtomServlet
public class IWSAAtomServlet
Atom Servlet implements Atom protocol by calling an
org.oclc.da.gdfr.registryprototype.atom.IWSAAtomHandler
implementation.
This servlet was inspired by the Apache implementation because the ROME
Atom handling was simply too inefficient and performed highly redundant parsing.
This implementation uses simple XSL stylesheets and little Java code
to translate Atom requests into IWSA deposit records.
| Field Summary | |
|---|---|
static java.lang.String |
FEED_TYPE
Get feed type support by Servlet, "atom_1.0" |
| Constructor Summary | |
|---|---|
IWSAAtomServlet()
|
|
| Method Summary | |
|---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle Atom DELETE by calling appropriate handler. |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles an Atom GET by calling handler and writing results to response. |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles an Atom POST by calling handler to identify URI, reading/parsing data, calling handler and writing results to response. |
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles an Atom PUT by calling handler to identify URI, reading/parsing data, calling handler and writing results to response. |
static java.lang.String |
getContextDirPath()
Get absolute path to Servlet context directory. |
protected java.lang.String[] |
getPathInfo(javax.servlet.http.HttpServletRequest request)
Convenience method to return the PathInfo from the request. |
void |
init(javax.servlet.ServletConfig config)
Initialize servlet. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doHead, doOptions, 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 |
| Field Detail |
|---|
public static final java.lang.String FEED_TYPE
| Constructor Detail |
|---|
public IWSAAtomServlet()
| Method Detail |
|---|
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doDelete in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionprotected java.lang.String[] getPathInfo(javax.servlet.http.HttpServletRequest request)
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static java.lang.String getContextDirPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||