From 25c5817a678936759649b8e36e5d5a2e360e1980 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Fri, 1 Feb 2002 22:40:55 +0000 Subject: [PATCH] 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 --- etc/ui-config.xml | 41 +++- rpcscripts/conf/conference.js | 59 +++++ rpcscripts/conf/message.js | 60 ++++++ rpcscripts/conf/topic.js | 57 +++++ rpcscripts/session.js | 66 ++++++ .../venice/core/TopicMessageContext.java | 2 + .../impl/TopicMessageUserContextImpl.java | 6 + .../venice/except/AccessError.java | 25 ++- .../venice/except/DataException.java | 25 ++- .../venice/except/SupplyFaultCode.java | 24 +++ .../venice/except/VeniceException.java | 15 +- .../silverwrist/venice/ui/RequestInput.java | 4 + .../venice/ui/config/RootConfig.java | 19 ++ .../venice/ui/rpc/RpcSessionBroker.java | 203 ++++++++++++++++++ .../venice/ui/rpc/RpcVeniceUISession.java | 161 ++++++++++++++ .../venice/ui/rpc/XmlRpcCreateSession.java | 50 +++++ .../venice/ui/rpc/XmlRpcFault.java | 13 ++ .../venice/ui/rpc/XmlRpcMethod.java | 85 +++++++- .../venice/ui/rpc/XmlRpcMulticall.java | 2 +- .../venice/ui/rpc/XmlRpcRequest.java | 49 ++++- .../venice/ui/rpc/XmlRpcServlet.java | 18 +- .../venice/ui/script/ScriptLibrary.java | 16 +- .../venice/ui/script/ScriptManager.java | 19 +- .../venice/ui/servlet/RequestImpl.java | 17 ++ 24 files changed, 1013 insertions(+), 23 deletions(-) create mode 100644 rpcscripts/conf/conference.js create mode 100644 rpcscripts/conf/message.js create mode 100644 rpcscripts/conf/topic.js create mode 100644 rpcscripts/session.js create mode 100644 src/com/silverwrist/venice/except/SupplyFaultCode.java create mode 100644 src/com/silverwrist/venice/ui/rpc/RpcSessionBroker.java create mode 100644 src/com/silverwrist/venice/ui/rpc/RpcVeniceUISession.java create mode 100644 src/com/silverwrist/venice/ui/rpc/XmlRpcCreateSession.java diff --git a/etc/ui-config.xml b/etc/ui-config.xml index 68b943b..5d0d738 100644 --- a/etc/ui-config.xml +++ b/etc/ui-config.xml @@ -276,19 +276,58 @@ + + 60 + -