1 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 28 public class SaveSubscription implements RegistryObject,Subscribe 29 { 30 String generic; 31 AuthInfo authInfo; 32 Vector subscriptionVector; 33 34 37 public SaveSubscription() 38 { 39 } 40 41 45 public void setGeneric(String genericValue) 46 { 47 this.generic = genericValue; 48 } 49 50 54 public String getGeneric() 55 { 56 return this.generic; 57 } 58 59 62 public void setAuthInfo(AuthInfo authInfo) 63 { 64 this.authInfo = authInfo; 65 } 66 67 70 public AuthInfo getAuthInfo() 71 { 72 return this.authInfo; 73 } 74 75 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 88 public void setSubscriptionVector(Vector subscriptions) 89 { 90 this.subscriptionVector = subscriptions; 91 } 92 93 96 public Vector getSubscriptionVector() 97 { 98 return subscriptionVector; 99 } 100 } | Popular Tags |