KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > request > SaveSubscription


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.juddi.datatype.request;
17
18 import java.util.Vector JavaDoc;
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 JavaDoc generic;
31   AuthInfo authInfo;
32   Vector JavaDoc subscriptionVector;
33
34   /**
35    *
36    */

37   public SaveSubscription()
38   {
39   }
40
41   /**
42    *
43    * @param genericValue
44    */

45   public void setGeneric(String JavaDoc genericValue)
46   {
47     this.generic = genericValue;
48   }
49
50   /**
51    *
52    * @return String request's generic value.
53    */

54   public String JavaDoc 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 JavaDoc();
82     this.subscriptionVector.add(subscription);
83   }
84
85   /**
86    *
87    */

88   public void setSubscriptionVector(Vector JavaDoc subscriptions)
89   {
90     this.subscriptionVector = subscriptions;
91   }
92
93   /**
94    *
95    */

96   public Vector JavaDoc getSubscriptionVector()
97   {
98     return subscriptionVector;
99   }
100 }
Popular Tags