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 DeleteSubscription implements RegistryObject,Subscribe 29 { 30 String generic; 31 AuthInfo authInfo; 32 Vector subscriptionKeyVector; 33 34 37 public DeleteSubscription() 38 { 39 } 40 41 42 45 public DeleteSubscription(AuthInfo authInfo,String subscriptionKey) 46 { 47 setAuthInfo(authInfo); 48 addSubscriptionKey(subscriptionKey); 49 } 50 51 54 public DeleteSubscription(AuthInfo authInfo,Vector subscriptionKeys) 55 { 56 setAuthInfo(authInfo); 57 setSubscriptionKeyVector(subscriptionKeys); 58 } 59 60 64 public void setGeneric(String genericValue) 65 { 66 this.generic = genericValue; 67 } 68 69 73 public String getGeneric() 74 { 75 return this.generic; 76 } 77 78 81 public void setAuthInfo(AuthInfo authInfo) 82 { 83 this.authInfo = authInfo; 84 } 85 86 89 public AuthInfo getAuthInfo() 90 { 91 return this.authInfo; 92 } 93 94 97 public void addSubscriptionKey(SubscriptionKey subscriptionKey) 98 { 99 if ((subscriptionKey != null) && (subscriptionKey.getValue() != null)) 100 addSubscriptionKey(subscriptionKey.getValue()); 101 } 102 103 106 public void addSubscriptionKey(String subscriptionKey) 107 { 108 if (this.subscriptionKeyVector == null) 109 this.subscriptionKeyVector = new Vector (); 110 this.subscriptionKeyVector.add(subscriptionKey); 111 } 112 113 116 public void setSubscriptionKeyVector(Vector subscriptionKeys) 117 { 118 this.subscriptionKeyVector = subscriptionKeys; 119 } 120 121 124 public Vector getSubscriptionKeyVector() 125 { 126 return this.subscriptionKeyVector; 127 } 128 } | Popular Tags |