|
|||||||||||
| 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.blojsom.servlet.BlojsomBaseServlet
org.blojsom.extension.atomapi.AtomAPIServlet
AtomAPIServlet
Implementation of J.C. Gregorio's Atom API.
| Field Summary |
| Fields inherited from class org.blojsom.servlet.BlojsomBaseServlet |
_baseConfigurationDirectory, _blojsomConfiguration, _fetcher |
| Fields inherited from interface org.blojsom.util.BlojsomMetaDataConstants |
BLOG_ENTRY_METADATA_AUTHOR, BLOG_ENTRY_METADATA_AUTHOR_EXT, BLOG_ENTRY_METADATA_TIMESTAMP, BLOG_METADATA_COMMENTS_DISABLED, BLOG_METADATA_HEADER, BLOG_METADATA_PINGBACKS_DISABLED, BLOG_METADATA_TRACKBACKS_DISABLED, SOURCE_ATTRIBUTE |
| Constructor Summary | |
AtomAPIServlet()
Default constructor |
|
| Method Summary | |
protected void |
configureAuthorization(javax.servlet.ServletConfig servletConfig)
Configure the authorization provider |
protected void |
configureFlavorsForUser(javax.servlet.ServletConfig servletConfig,
BlogUser blogUser)
Configure the flavors for the blog which map flavor values like "html" and "rss" to the proper template and content type |
void |
destroy()
Called when removing the servlet from the servlet container |
protected void |
doDelete(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle a Delete Entry message |
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Process a Get Entry message |
protected void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle a Post Entry request |
protected void |
doPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle a Put Entry request |
protected void |
handleSOAPPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle a SOAP PUT request |
protected void |
handleSOAPRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle a given SOAP request looking for the "SOAPAction" header to decide on which method to execute |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize the blojsom AtomAPI servlet |
protected BlogUser |
loadBlogUser(java.lang.String userID)
Loads a BlogUser object for a given user ID |
protected java.lang.String |
readContentFromInputStream(java.io.InputStream is,
int length)
Read all the content from a given input stream for a specified length. |
protected java.lang.String |
retrieveEntryBody(java.lang.String content)
Retrieve an entry body (<entry>...</entry>) from arbitrary content |
| Methods inherited from class org.blojsom.servlet.BlojsomBaseServlet |
configureBlojsom, configureFetcher |
| Methods inherited from class javax.servlet.http.HttpServlet |
doHead, doOptions, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
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 |
public AtomAPIServlet()
| Method Detail |
protected void configureAuthorization(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
javax.servlet.ServletException - If there is an error instantiating and/or initializing the authorization provider
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class BlojsomBaseServletservletConfig - Servlet configuration information
javax.servlet.ServletException - If there is an error initializing the servlet
protected void configureFlavorsForUser(javax.servlet.ServletConfig servletConfig,
BlogUser blogUser)
throws javax.servlet.ServletException
servletConfig - Servlet configuration informationblogUser - BlogUser information
javax.servlet.ServletExceptionprotected BlogUser loadBlogUser(java.lang.String userID)
BlogUser object for a given user ID
userID - User ID
BlogUser configured for the given user ID or null if there is an error loading the user
protected void doDelete(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
java.io.IOException
httpServletRequest - RequesthttpServletResponse - Response
javax.servlet.ServletException - If there is an error processing the request
java.io.IOException - If there is an error during I/O
protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
java.io.IOException
httpServletRequest - RequesthttpServletResponse - Response
javax.servlet.ServletException - If there is an error processing the request
java.io.IOException - If there is an error during I/O
protected void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
java.io.IOException
httpServletRequest - RequesthttpServletResponse - Response
javax.servlet.ServletException - If there is an error processing the request
java.io.IOException - If there is an error during I/O
protected void doPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
java.io.IOException
httpServletRequest - RequesthttpServletResponse - Response
javax.servlet.ServletException - If there is an error processing the request
java.io.IOException - If there is an error during I/O
protected void handleSOAPRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest - RequesthttpServletResponse - Responseprotected java.lang.String retrieveEntryBody(java.lang.String content)
content - Content
null if the entry body could not be found
protected java.lang.String readContentFromInputStream(java.io.InputStream is,
int length)
null value
is returned.
is - InputStreamlength - Length of input stream to read
protected void handleSOAPPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest - RequesthttpServletResponse - Responsepublic void destroy()
destroy in interface javax.servlet.Servlet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||