1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.request;
17
18 import java.util.Vector;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.subscription.Subscription;
22
23 /***
24 * Used to register or update complete information about a publisher.
25 *
26 * @author Steve Viens (sviens@apache.org)
27 */
28 public class SaveSubscription implements RegistryObject,Subscribe
29 {
30 String generic;
31 AuthInfo authInfo;
32 Vector subscriptionVector;
33
34 /***
35 *
36 */
37 public SaveSubscription()
38 {
39 }
40
41 /***
42 *
43 * @param genericValue
44 */
45 public void setGeneric(String genericValue)
46 {
47 this.generic = genericValue;
48 }
49
50 /***
51 *
52 * @return String request's generic value.
53 */
54 public String getGeneric()
55 {
56 return this.generic;
57 }
58
59 /***
60 *
61 */
62 public void setAuthInfo(AuthInfo authInfo)
63 {
64 this.authInfo = authInfo;
65 }
66
67 /***
68 *
69 */
70 public AuthInfo getAuthInfo()
71 {
72 return this.authInfo;
73 }
74
75 /***
76 *
77 */
78 public void addSubscription(Subscription subscription)
79 {
80 if (this.subscriptionVector == null)
81 this.subscriptionVector = new Vector();
82 this.subscriptionVector.add(subscription);
83 }
84
85 /***
86 *
87 */
88 public void setSubscriptionVector(Vector subscriptions)
89 {
90 this.subscriptionVector = subscriptions;
91 }
92
93 /***
94 *
95 */
96 public Vector getSubscriptionVector()
97 {
98 return subscriptionVector;
99 }
100 }