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.SubscriptionKey; 22 23 28 public class GetSubscriptions implements RegistryObject,Subscribe 29 { 30 String generic; 31 AuthInfo authInfo; 32 Vector subscriptionKeyVector; 33 34 37 public GetSubscriptions() 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 Vector getSubscriptionKeyVector() 79 { 80 return this.subscriptionKeyVector; 81 } 82 83 88 public void addSubscriptionKey(SubscriptionKey key) 89 { 90 if ((key != null) && (key.getValue() != null)) 91 addSubscriptionKey(key.getValue()); 92 } 93 94 99 public void addSubscriptionKey(String key) 100 { 101 if (subscriptionKeyVector == null) 102 subscriptionKeyVector = new Vector (); 103 subscriptionKeyVector.add(key); 104 } 105 106 111 public void setSubscriptionKeyVector(Vector keys) 112 { 113 this.subscriptionKeyVector = keys; 114 } 115 } | Popular Tags |