1 package org.apache.turbine.services.xmlrpc; 2 3 18 19 import java.io.InputStream ; 20 21 import java.net.URL ; 22 23 import java.util.Vector ; 24 25 import org.apache.turbine.services.Service; 26 import org.apache.turbine.util.TurbineException; 27 28 37 public interface XmlRpcService 38 extends Service 39 { 40 41 String SERVICE_NAME = "XmlRpcService"; 42 43 52 Object executeRpc(URL url, 53 String methodName, 54 Vector params) 55 throws TurbineException; 56 57 69 Object executeAuthenticatedRpc(URL url, 70 String username, 71 String password, 72 String methodName, 73 Vector params) 74 throws TurbineException; 75 76 83 void registerHandler(String handlerName, Object handler); 84 85 91 void registerHandler(Object handler); 92 93 98 void unregisterHandler(String handlerName); 99 100 109 byte[] handleRequest(InputStream is); 110 111 126 byte[] handleRequest(InputStream is, String user, String password); 127 128 140 void send(String serverURL, 141 String sourceLocationProperty, 142 String sourceFileName, 143 String destinationLocationProperty, 144 String destinationFileName) 145 throws TurbineException; 146 147 162 void send(String serverURL, 163 String username, 164 String password, 165 String sourceLocationProperty, 166 String sourceFileName, 167 String destinationLocationProperty, 168 String destinationFileName) 169 throws TurbineException; 170 171 183 void get(String serverURL, 184 String sourceLocationProperty, 185 String sourceFileName, 186 String destinationLocationProperty, 187 String destinationFileName) 188 throws TurbineException; 189 190 205 void get(String serverURL, 206 String username, 207 String password, 208 String sourceLocationProperty, 209 String sourceFileName, 210 String destinationLocationProperty, 211 String destinationFileName) 212 throws TurbineException; 213 214 225 void remove(String serverURL, 226 String sourceLocationProperty, 227 String sourceFileName) 228 throws TurbineException; 229 230 243 void remove(String serverURL, 244 String username, 245 String password, 246 String sourceLocationProperty, 247 String sourceFileName) 248 throws TurbineException; 249 250 257 void setParanoid(boolean state); 258 259 269 void acceptClient(String address); 270 271 280 void denyClient(String address); 281 282 } 283 | Popular Tags |