Examples of GetSubscriptions


Examples of org.apache.juddi.datatype.request.GetSubscriptions

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    GetSubscriptions obj = new GetSubscriptions();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,SubscriptionKeyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(SubscriptionKeyHandler.TAG_NAME);
      obj.addSubscriptionKey((SubscriptionKey)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    GetSubscriptions request = (GetSubscriptions)object;
    String generic = request.getGeneric();
    generic = getGeneric(generic);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    element.setAttribute("generic",generic);

    Vector keyVector = request.getSubscriptionKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(SubscriptionKeyHandler.TAG_NAME);
      for (int i=0; i<keyVector.size(); i++)
        handler.marshal(new SubscriptionKey((String)keyVector.elementAt(i)),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

    AbstractHandler handler = maker.lookup(GetSubscriptionsHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    GetSubscriptions service = new GetSubscriptions();
    service.addSubscriptionKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    service.addSubscriptionKey(new SubscriptionKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));

    System.out.println();

    RegistryObject regObject = service;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    GetSubscriptions request = (GetSubscriptions)regObject;
    String generic = request.getGeneric();

    // aquire a jUDDI datastore instance
    DataStore dataStore = DataStoreFactory.getDataStore();

    try
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    GetSubscriptions obj = new GetSubscriptions();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,SubscriptionKeyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(SubscriptionKeyHandler.TAG_NAME);
      obj.addSubscriptionKey((SubscriptionKey)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    GetSubscriptions request = (GetSubscriptions)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
    AbstractHandler handler = null;

    String generic = request.getGeneric();
    if (generic != null)
      element.setAttribute("generic",generic);

    Vector keyVector = request.getSubscriptionKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(SubscriptionKeyHandler.TAG_NAME);
      for (int i=0; i<keyVector.size(); i++)
        handler.marshal(new SubscriptionKey((String)keyVector.elementAt(i)),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetSubscriptions

    AbstractHandler handler = maker.lookup(GetSubscriptionsHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    GetSubscriptions service = new GetSubscriptions();
    service.addSubscriptionKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    service.addSubscriptionKey(new SubscriptionKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));

    System.out.println();

    RegistryObject regObject = service;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.objectweb.joram.shared.admin.GetSubscriptions

   *
   * @exception AdminException If an error is raised by the administration operation.
   * @exception ConnectException  If the admin connection is not established.
   */
  public Subscription[] getSubscriptions() throws AdminException, ConnectException {
    GetSubscriptionsRep reply = (GetSubscriptionsRep) doRequest(new GetSubscriptions(proxyId));

    String[] subNames = reply.getSubNames();
    String[] topicIds = reply.getTopicIds();
    int[] messageCounts = reply.getMessageCounts();
    boolean[] durable = reply.getDurable();
View Full Code Here

Examples of org.uddi.sub_v3.GetSubscriptions

        }
        if (method.equalsIgnoreCase("getSubscriptionResults")) {
            JAXB.marshal(new GetSubscriptionResults(), sw);
        }
        if (method.equalsIgnoreCase("getSubscriptions")) {
            JAXB.marshal(new GetSubscriptions(), sw);
        }
        if (method.equalsIgnoreCase("saveSubscription")) {
            JAXB.marshal(new SaveSubscription(), sw);
        }
        return PrettyPrintXML(sw.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.