|
|||||||||||
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.blojsom.servlet.BlojsomBaseServlet org.blojsom.extension.xmlrpc.BlojsomXMLRPCServlet
Blojsom XML-RPC Servlet
This servlet uses the Jakarta XML-RPC Library (http://ws.apache.org/xmlrpc)
Field Summary | |
protected AuthorizationProvider |
_authorizationProvider
|
protected javax.servlet.ServletConfig |
_servletConfig
|
static java.lang.String |
XMLRPC_ACCEPTS_ONLY_POSTS_MESSAGE
|
static int |
XMLRPC_DISABLED
|
static java.lang.String |
XMLRPC_DISABLED_MESSAGE
|
Fields inherited from class org.blojsom.servlet.BlojsomBaseServlet |
_baseConfigurationDirectory, _blojsomConfiguration, _fetcher |
Fields inherited from interface org.blojsom.extension.xmlrpc.BlojsomXMLRPCConstants |
BLOG_XMLRPC_CONFIGURATION_IP, BLOG_XMLRPC_ENTRY_EXTENSION_IP, DEFAULT_BLOG_XMLRPC_ENTRY_EXTENSION, DEFAULT_XMLRPC_HANDLER_KEY |
Constructor Summary | |
BlojsomXMLRPCServlet()
Construct a new Blojsom XML-RPC servlet instance |
Method Summary | |
protected void |
configureAuthorization()
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 |
protected org.apache.xmlrpc.XmlRpcServer |
configureXMLRPCServer(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String userID)
Configure the XML-RPC API Handlers |
void |
destroy()
Called when removing the servlet from the servlet container |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize the blojsom XML-RPC servlet |
protected void |
service(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Service an XML-RPC request by passing the request to the proper handler |
Methods inherited from class org.blojsom.servlet.BlojsomBaseServlet |
configureBlojsom, configureFetcher |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 |
Field Detail |
protected AuthorizationProvider _authorizationProvider
protected javax.servlet.ServletConfig _servletConfig
public static final int XMLRPC_DISABLED
public static final java.lang.String XMLRPC_DISABLED_MESSAGE
public static final java.lang.String XMLRPC_ACCEPTS_ONLY_POSTS_MESSAGE
Constructor Detail |
public BlojsomXMLRPCServlet()
Method Detail |
protected void configureAuthorization() throws javax.servlet.ServletException
javax.servlet.ServletException
- If there is an error instantiating and/or initializing the authorization providerprotected void configureFlavorsForUser(javax.servlet.ServletConfig servletConfig, BlogUser blogUser) throws javax.servlet.ServletException
servletConfig
- Servlet configuration informationblogUser
- BlogUser
information
javax.servlet.ServletException
protected org.apache.xmlrpc.XmlRpcServer configureXMLRPCServer(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.String userID) throws javax.servlet.ServletException
httpServletRequest
- RequesthttpServletResponse
- ResponseuserID
- User ID
XmlRpcServer
configured for the given user or null
if the configuration failed
javax.servlet.ServletException
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class BlojsomBaseServlet
servletConfig
- Servlet configuration information
javax.servlet.ServletException
- If there is an error initializing the servletprotected void service(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/Opublic void destroy()
destroy
in interface javax.servlet.Servlet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |