Package org.apache.wiki.xmlrpc
Class AbstractRPCHandler
java.lang.Object
org.apache.wiki.xmlrpc.AbstractRPCHandler
- All Implemented Interfaces:
WikiRPCHandler
- Direct Known Subclasses:
RPCHandler,RPCHandlerUTF8
public abstract class AbstractRPCHandler extends java.lang.Object implements WikiRPCHandler
Provides definitions for RPC handler routines.
- Since:
- 1.6.13
-
Field Summary
Fields Modifier and Type Field Description static intERR_NOPAGEError code: no such page.static intERR_NOPERMISSIONstatic java.lang.StringLINK_EXTERNALLink to an external resource.static java.lang.StringLINK_INLINEThis is an inlined image.static java.lang.StringLINK_LOCALLink to a local wiki page.protected Contextm_contextprotected Enginem_enginestatic intRPC_VERSIONThis is the currently implemented JSPWiki XML-RPC code revision. -
Constructor Summary
Constructors Constructor Description AbstractRPCHandler() -
Method Summary
Modifier and Type Method Description protected voidcheckPermission(java.security.Permission perm)Checks whether the current user has permission to perform the RPC action; throws an exception if not allowed byAuthorizationManager.protected abstract java.util.HashtableencodeWikiPage(Page p)java.util.VectorgetRecentChanges(java.util.Date since)intgetRPCVersionSupported()Returns the current supported JSPWiki XML-RPC API.voidinitialize(Context context)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ERR_NOPAGE
Error code: no such page.- See Also:
- Constant Field Values
-
ERR_NOPERMISSION
- See Also:
- Constant Field Values
-
LINK_LOCAL
Link to a local wiki page.- See Also:
- Constant Field Values
-
LINK_EXTERNAL
Link to an external resource.- See Also:
- Constant Field Values
-
LINK_INLINE
This is an inlined image.- See Also:
- Constant Field Values
-
m_engine
-
m_context
-
RPC_VERSION
This is the currently implemented JSPWiki XML-RPC code revision.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractRPCHandler
public AbstractRPCHandler()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceWikiRPCHandler
-
encodeWikiPage
-
getRecentChanges
-
checkPermission
Checks whether the current user has permission to perform the RPC action; throws an exception if not allowed byAuthorizationManager.- Parameters:
perm- the Permission to check
-
getRPCVersionSupported
Returns the current supported JSPWiki XML-RPC API.
-