|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.ignition.blojsom.extension.blojsim.BlojsimBaseServlet
Base Blojsim Servlet
Field Summary | |
protected org.ignition.blojsom.blog.Blog |
_blog
|
protected java.lang.String |
_bloghome
|
protected org.ignition.blojsom.blog.BlogCategory[] |
_categories
|
protected java.lang.String |
_defaultcategory
|
protected java.util.Map |
_posterhash
|
protected java.lang.String |
_subject
|
protected static java.lang.String |
BLOJSIM_CONFIRMATION
|
protected static java.lang.String |
NULL_SUBJECT
|
Fields inherited from interface org.ignition.blojsom.extension.blojsim.BlojsimConstants |
AIM_ENTRY_FOOTER, AIM_PASSWORD, AIM_SERVER, AIM_SERVER_PORT, AIM_USERID, BLOJSIM_CONFIGURATION, COMMENTED_LINE, DEFAULT_AIM_SERVER, DEFAULT_AIM_SERVER_PORT, DEFAULT_BLOJSIM_CONFIGURATION, DEFAULT_JABBER_SERVER, JABBER_ENTRY_FOOTER, JABBER_PASSWORD, JABBER_SERVER, JABBER_USERID, MSN_ENTRY_FOOTER, MSN_PASSWORD, MSN_USERID, PROTOCOL_AIM, PROTOCOL_JABBER, PROTOCOL_MSN |
Constructor Summary | |
BlojsimBaseServlet()
|
Method Summary | |
void |
configureBlojsim(javax.servlet.ServletContext context,
java.lang.String filename)
|
protected void |
configureValidPosters(java.lang.String postersfile)
Process the Valid Blog Posters List |
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
|
java.util.Properties |
getConfiguration()
|
java.lang.String |
getEntryFilename(java.lang.String protocol)
Creates a timestamped entry filename for a given protocol |
java.lang.String |
getEntryFooter(java.lang.String protocol,
java.lang.String userid)
Returns a Entry Footer filled out with the Reply IM Hyperlink and all other neato info |
java.lang.String |
getEntryTimestamp()
Returns a Timestamp String yyyyMMDD-HHmmssSS to use in the filename |
void |
init(javax.servlet.ServletConfig servletConfig)
|
void |
processBlojsomCongfiguration(javax.servlet.ServletContext context,
java.lang.String filename)
Process the Blojsom Configuration files (blojsom.properties) to determine the home directory of the blog |
void |
writeEntryToFile(java.lang.String filename,
java.lang.String contents)
Write the Entry to a File |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, 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 |
Field Detail |
protected static final java.lang.String BLOJSIM_CONFIRMATION
protected static final java.lang.String NULL_SUBJECT
protected java.util.Map _posterhash
protected java.lang.String _bloghome
protected org.ignition.blojsom.blog.Blog _blog
protected java.lang.String _subject
protected java.lang.String _defaultcategory
protected org.ignition.blojsom.blog.BlogCategory[] _categories
Constructor Detail |
public BlojsimBaseServlet()
Method Detail |
protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, java.io.IOException
httpServletRequest
- httpServletResponse
-
javax.servlet.ServletException
java.io.IOException
public java.lang.String getEntryFooter(java.lang.String protocol, java.lang.String userid)
protocol
- String representing the protocol (AIM,Jabber, etc)userid
- Posters IM User ID
public java.lang.String getEntryFilename(java.lang.String protocol)
protocol
- String representing the protocol (AIM,Jabber, etc)
public void writeEntryToFile(java.lang.String filename, java.lang.String contents)
filename
- The fully qualified filename to write tocontents
- The Blog Entrypublic java.lang.String getEntryTimestamp()
protected void configureValidPosters(java.lang.String postersfile)
postersfile
- The filename that contains the posters listpublic void processBlojsomCongfiguration(javax.servlet.ServletContext context, java.lang.String filename)
context
- The ServletContextfilename
- The Filename to processpublic void configureBlojsim(javax.servlet.ServletContext context, java.lang.String filename)
context
- filename
- public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
servletConfig
-
javax.servlet.ServletException
public java.util.Properties getConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |