|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.xmlrpc.AbstractRPCHandler
public abstract class AbstractRPCHandler
Provides definitions for RPC handler routines.
Field Summary | |
---|---|
static int |
ERR_NOPAGE
Error code: no such page. |
static int |
ERR_NOPERMISSION
|
static String |
LINK_EXTERNAL
Link to an external resource. |
static String |
LINK_INLINE
This is an inlined image. |
static String |
LINK_LOCAL
Link to a local wiki page. |
protected WikiContext |
m_context
|
protected WikiEngine |
m_engine
|
static int |
RPC_VERSION
This is the currently implemented JSPWiki XML-RPC code revision. |
Constructor Summary | |
---|---|
AbstractRPCHandler()
|
Method Summary | |
---|---|
protected void |
checkPermission(Permission perm)
Checks whether the current user has permission to perform the RPC action; throws an exception if not allowed by AuthorizationManager . |
protected abstract Hashtable |
encodeWikiPage(WikiPage p)
|
Vector |
getRecentChanges(Date since)
|
int |
getRPCVersionSupported()
Returns the current supported JSPWiki XML-RPC API. |
void |
initialize(WikiContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERR_NOPAGE
public static final int ERR_NOPERMISSION
public static final String LINK_LOCAL
public static final String LINK_EXTERNAL
public static final String LINK_INLINE
protected WikiEngine m_engine
protected WikiContext m_context
public static final int RPC_VERSION
Constructor Detail |
---|
public AbstractRPCHandler()
Method Detail |
---|
public void initialize(WikiContext context)
initialize
in interface WikiRPCHandler
protected abstract Hashtable encodeWikiPage(WikiPage p)
public Vector getRecentChanges(Date since)
protected void checkPermission(Permission perm)
AuthorizationManager
.
perm
- the Permission to checkpublic int getRPCVersionSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |