implemented the initial XML-RPC APIs in Venice - for creating and destroying

"sessions," logging in, posting messages to topics, attaching files to
messages, and a couple of minor things that aren't as important right now
This commit is contained in:
Eric J. Bowersox
2002-02-01 22:40:55 +00:00
parent f463834ef0
commit 25c5817a67
24 changed files with 1013 additions and 23 deletions

View File

@@ -276,19 +276,58 @@
<!-- Configuration for the RPC interfaces. -->
<rpc>
<!-- Timeout for RPC sessions -->
<session-timeout>60</session-timeout>
<xmlrpc-methods>
<!-- XML-RPC validation suite -->
<method name="validator1\.[a-zA-Z]*"><script name="test/validation.js"/></method>
<method name="validator1\.[:alpha:]+"><script name="test/validation.js"/></method>
<!-- Multicall "boxcar" marshaller (see http://www.xmlrpc.com/discuss/msgReader$1208) -->
<method name="system.multicall"><object class="com.silverwrist.venice.ui.rpc.XmlRpcMulticall"/></method>
<!-- The session creation API -->
<method name="venice:session\.create">
<object class="com.silverwrist.venice.ui.rpc.XmlRpcCreateSession"/>
</method>
<!-- The other session APIs -->
<method name="venice:session\.([:alnum:]+)">
<script name="session.js"/>
<session param="0"/>
<env name="call" value="${match.1}"/>
</method>
<!-- The conferencing APIs for conferences -->
<method name="venice:conferencing\.conference\.([:alnum:]+)">
<script name="conf/conference.js"/>
<session param="0"/>
<env name="call" value="${match.1}"/>
</method>
<!-- The conferencing APIs for topics -->
<method name="venice:conferencing\.topic\.([:alnum:]+)">
<script name="conf/topic.js"/>
<session param="0"/>
<env name="call" value="${match.1}"/>
</method>
<!-- The conferencing APIs for messages -->
<method name="venice:conferencing\.message\.([:alnum:]+)">
<script name="conf/message.js"/>
<session param="0"/>
<env name="call" value="${match.1}"/>
</method>
<!-- A test method -->
<method name="venice:test\.sumDifference">
<!-- <object class="com.silverwrist.venice.ui.rpc.XmlRpcTestHandler"/> -->
<!-- <session param="0"/> -->
<script name="test/test1.js"/>
<env name="e1" value="foo"/>
<env name="p1" value="${param.0}"/>
</method>
</xmlrpc-methods>
</rpc>