|
|||||||||
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
com.sun.syndication.propono.atom.server.AtomServlet
public class AtomServlet
Atom Servlet implements Atom protocol by calling an
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.
Field Summary | |
---|---|
static String |
FEED_TYPE
Get feed type support by Servlet, "atom_1.0" |
Constructor Summary | |
---|---|
AtomServlet()
|
Method Summary | |
---|---|
protected void |
doDelete(HttpServletRequest req,
HttpServletResponse res)
Handle Atom DELETE by calling appropriate handler. |
protected void |
doGet(HttpServletRequest req,
HttpServletResponse res)
Handles an Atom GET by calling handler and writing results to response. |
protected void |
doPost(HttpServletRequest req,
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(HttpServletRequest req,
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. |
protected String[] |
getPathInfo(HttpServletRequest request)
Convenience method to return the PathInfo from the request. |
void |
init(ServletConfig config)
Initialize servlet. |
static Entry |
parseEntry(Reader rd)
Parse entry from reader. |
static void |
serializeEntry(Entry entry,
OutputStream ostream)
Serialize entry to output stream |
static void |
serializeEntry(Entry entry,
Writer writer)
Serialize entry to writer. |
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 String FEED_TYPE
Constructor Detail |
---|
public AtomServlet()
Method Detail |
---|
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
protected void doPut(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPut
in class HttpServlet
ServletException
IOException
protected void doDelete(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doDelete
in class HttpServlet
ServletException
IOException
protected String[] getPathInfo(HttpServletRequest request)
public static void serializeEntry(Entry entry, OutputStream ostream) throws IllegalArgumentException, FeedException, IOException
IllegalArgumentException
FeedException
IOException
public static void serializeEntry(Entry entry, Writer writer) throws IllegalArgumentException, FeedException, IOException
IllegalArgumentException
FeedException
IOException
public static Entry parseEntry(Reader rd) throws org.jdom.JDOMException, IOException, IllegalArgumentException, FeedException
org.jdom.JDOMException
IOException
IllegalArgumentException
FeedException
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
public static String getContextDirPath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |