|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
redstone.xmlrpc.XmlRpcServlet
public class XmlRpcServlet
Servlet that publishes an XmlRpcServer in a web server.
Constructor Summary | |
---|---|
XmlRpcServlet()
|
Method Summary | |
---|---|
void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Handles reception of XML-RPC messages. |
java.lang.String |
getContentType()
Returns the content type of the messages returned from the servlet which is text/xml for XML-RPC messages and text/javascript+json for JSON messages. |
boolean |
getStreamMessages()
Indicates whether or not messages are streamed or if they are built in memory to be able to calculate the HTTP Content-Length. |
XmlRpcServer |
getXmlRpcServer()
Returns the XmlRpcServer that is backing the servlet. |
void |
init(ServletConfig config)
Initializes the servlet by instantiating the XmlRpcServer that will hold all invocation handlers and processors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcServlet()
Method Detail |
---|
public void init(ServletConfig config) throws ServletException
Further, the configuration is read to see if any services are mentioned declaratively that are to be instantiated and published. An alternative to this is to create a new servlet class extending from XmlRpcServlet that publishes services programmatically.
ServletException
public XmlRpcServer getXmlRpcServer()
public boolean getStreamMessages()
public java.lang.String getContentType()
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
req
- res
-
ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |