public class AtomServlet
extends javax.servlet.http.HttpServlet
com.rometools.rome.propono.atom.server.AtomHandler
implementation. This servlet takes
care of parsing incoming XML into ROME Atom Entry
objects,
passing those to the handler and serializing to the response the entries and feeds returned by
the handler.Modifier and Type | Field and Description |
---|---|
static String |
FEED_TYPE
Get feed type support by Servlet, "atom_1.0"
|
Constructor and Description |
---|
AtomServlet() |
Modifier and Type | Method and Description |
---|---|
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 String |
getContextDirPath()
Get absolute path to Servlet context directory.
|
void |
init(javax.servlet.ServletConfig config)
Initialize servlet.
|
doHead, doOptions, doTrace, getLastModified, service, service
public static final String FEED_TYPE
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doDelete
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public static String getContextDirPath()
Copyright © 2016. All rights reserved.