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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user