Package org.apache.wiki.xmlrpc
Class RPCHandler
- java.lang.Object
-
- org.apache.wiki.xmlrpc.AbstractRPCHandler
-
- org.apache.wiki.xmlrpc.RPCHandler
-
- All Implemented Interfaces:
WikiRPCHandler
public class RPCHandler extends AbstractRPCHandler
Provides handlers for all RPC routines.- Since:
- 1.6.6
-
-
Field Summary
-
Fields inherited from class org.apache.wiki.xmlrpc.AbstractRPCHandler
ERR_NOPAGE, ERR_NOPERMISSION, LINK_EXTERNAL, LINK_INLINE, LINK_LOCAL, m_context, m_engine, RPC_VERSION
-
-
Constructor Summary
Constructors Constructor Description RPCHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Hashtable<java.lang.String,java.lang.Object>
encodeWikiPage(Page page)
Encodes a single wiki page info into a Hashtable.java.util.Vector<java.lang.String>
getAllPages()
java.lang.String
getApplicationName()
byte[]
getPage(java.lang.String pagename)
byte[]
getPageHTML(java.lang.String pagename)
byte[]
getPageHTMLVersion(java.lang.String pagename, int version)
java.util.Hashtable
getPageInfo(java.lang.String pagename)
java.util.Hashtable
getPageInfoVersion(java.lang.String pagename, int version)
byte[]
getPageVersion(java.lang.String pagename, int version)
java.util.Vector<java.util.Hashtable<java.lang.String,java.lang.Object>>
getRecentChanges(java.util.Date since)
java.util.Vector<java.util.Hashtable<java.lang.String,java.lang.String>>
listLinks(java.lang.String pagename)
-
Methods inherited from class org.apache.wiki.xmlrpc.AbstractRPCHandler
checkPermission, getRPCVersionSupported, initialize
-
-
-
-
Constructor Detail
-
RPCHandler
public RPCHandler()
-
-
Method Detail
-
getApplicationName
public java.lang.String getApplicationName()
-
getAllPages
public java.util.Vector<java.lang.String> getAllPages()
-
encodeWikiPage
protected java.util.Hashtable<java.lang.String,java.lang.Object> encodeWikiPage(Page page)
Encodes a single wiki page info into a Hashtable.- Specified by:
encodeWikiPage
in classAbstractRPCHandler
-
getRecentChanges
public java.util.Vector<java.util.Hashtable<java.lang.String,java.lang.Object>> getRecentChanges(java.util.Date since)
- Overrides:
getRecentChanges
in classAbstractRPCHandler
-
getPageInfo
public java.util.Hashtable getPageInfo(java.lang.String pagename) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
getPageInfoVersion
public java.util.Hashtable getPageInfoVersion(java.lang.String pagename, int version) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
getPage
public byte[] getPage(java.lang.String pagename) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
getPageVersion
public byte[] getPageVersion(java.lang.String pagename, int version) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
getPageHTML
public byte[] getPageHTML(java.lang.String pagename) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
getPageHTMLVersion
public byte[] getPageHTMLVersion(java.lang.String pagename, int version) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
listLinks
public java.util.Vector<java.util.Hashtable<java.lang.String,java.lang.String>> listLinks(java.lang.String pagename) throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
-
-