Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.NameValuePairDescriptor


        // property*
        Iterator properties = bundleDescriptor.getProperties();
        if (properties!=null) {
            RuntimeNameValuePairNode propNode = new RuntimeNameValuePairNode();
            while (properties.hasNext()) {
                NameValuePairDescriptor aProp =
                    (NameValuePairDescriptor) properties.next();
                propNode.writeDescriptor(ejbs, RuntimeTagNames.PROPERTY, aProp);
            }
        }

View Full Code Here


    public void writeDescriptor(Node parent, String nodeName, Iterator props) {
  if (props==null)
      return;
     
  while(props.hasNext()) {
      NameValuePairDescriptor aProp = (NameValuePairDescriptor) props.next();
      writeDescriptor(parent, nodeName, aProp);
  }
    }
View Full Code Here

   /**
    * @return the descriptor instance to associate with this XMLNode
    */   
    public Object getDescriptor() {
        if (descriptor==null) {
            descriptor = new NameValuePairDescriptor();
        }
        return descriptor;
    }
View Full Code Here

        //property*
        Iterator properties = endpoint.getProperties();
        if (properties!=null) {
            RuntimeNameValuePairNode propNode = new RuntimeNameValuePairNode();       
            while (properties.hasNext()) {
                NameValuePairDescriptor aProp = (NameValuePairDescriptor) properties.next();
                propNode.writeDescriptor(endpointNode, RuntimeTagNames.PROPERTY, aProp);
            }
      }
                           
        return endpointNode;
View Full Code Here

            if(hasRegisteredEndpointInJBI(facade, context))
                return createJBITransportPipe(facade, context);
            return null;
        }

        NameValuePairDescriptor stubProp =
                                portInfo.getStubPropertyByName("jbi-enabled");
        // In a composite application jbi-enabled flag can be used to override
        // the client routing logic
        if(stubProp == null) {
            if(hasRegisteredEndpointInJBI(facade, context))
                return createJBITransportPipe(facade, context);
            return null;
        }

        String jbi_enabled = stubProp.getValue();

        if(jbi_enabled.equalsIgnoreCase("true")) {
                return createJBITransportPipe(facade, context);
        }
        return null;
View Full Code Here

  handlerClass = other.handlerClass; // String
  portNames.addAll(other.portNames); // Set of String
  soapRoles.addAll(other.soapRoles); // Set of String
  soapHeaders.addAll(other.soapHeaders); // Set of QName (immutable)
  for (Iterator i = other.initParams.iterator(); i.hasNext();) {
      initParams.add(new NameValuePairDescriptor((NameValuePairDescriptor)i.next()));
  }
    }
View Full Code Here

    }
   
    //
    public boolean isPropertyElement(int index)
    {
  NameValuePairDescriptor ret = (NameValuePairDescriptor)this.getValue(PROPERTY, index);
  return ret != null;
    }
View Full Code Here

        if( portInfo != null ) {
            Set properties = portInfo.getStubProperties();

            for(Iterator iter = properties.iterator(); iter.hasNext();) {
                NameValuePairDescriptor next = (NameValuePairDescriptor)
                        iter.next();

                stub._setProperty(next.getName(), next.getValue());

            }

            // If this port has a resolved target endpoint address due to a
            // port-component-link, set it on stub.  However, if the runtime
View Full Code Here

        return callProperties;
    }

    private void setCallProperties(Call call, Set callProperties) {
        for(Iterator iter = callProperties.iterator(); iter.hasNext();) {
            NameValuePairDescriptor next = (NameValuePairDescriptor)
                    iter.next();
            call.setProperty(next.getName(), next.getValue());
        }
    }
View Full Code Here

            }
           
            // Set stub properties
            Set properties = portInfo.getStubProperties();           
            for(Iterator iter = properties.iterator(); iter.hasNext();) {
                NameValuePairDescriptor next = (NameValuePairDescriptor)
                    iter.next();
                bp.getRequestContext().put(next.getName(), next.getValue());
               
            }
        }       
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.NameValuePairDescriptor

Copyright © 2018 www.massapicom. 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.