1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 package com.mjh.switchrmi;
27
28 import com.mjh.util.*;
29
30 import java.io.*;
31
32 import java.net.*;
33
34 public interface RmiTransport
35 {
36 public final static String HTTP = "http";
37 public final static String SMTP = "smtp";
38 public final static String TEST = "test";
39 public final static String JMS = "jms";
40 public final static String JABBER = "jabber";
41 public final static String ASYNCHRONOUS = "async";
42 public final static String SYNCHRONOUS = "sync";
43
44 public String getType();
45
46 public void setType(String type);
47
48 public InputStream getInputStream(RmiContext context)
49 throws Exception;
50
51 public OutputStream getOutputStream(RmiContext context)
52 throws Exception;
53
54 public void send(RmiContext context)
55 throws Exception;
56
57 public void recv(RmiContext context)
58 throws Exception;
59
60 public void setSessionIdentifier(Object identifier);
61
62 public Object getSessionIdentifier();
63
64 public UrlInfo getUrlInfo(RmiContext context)
65 throws MalformedURLException;
66 }