Package org.jboss.soa.esb.helpers

Examples of org.jboss.soa.esb.helpers.KeyValuePair


    if (parent != null)  {
        List<KeyValuePair> parentAttributes = parent.attributesAsList();
        for (KeyValuePair attr : parentAttributes)  {
            String newKeyName = optionalFields.get(attr.getKey());
            if (newKeyName != null) {
                pairs.add(new KeyValuePair(newKeyName, attr.getValue()));
            }
            }
    }
   
    Map<String, String> properties = new HashMap<String, String>();
View Full Code Here


            + selector
            + ">.  Must be 2 tokens seperated by an '=' character, and the token after the '=' character must be enclosed in single quotes.");
    }
   
    // attr/value will be non-null by here.
    KeyValuePair oNew = new KeyValuePair(attr, value.substring(0,
      -1 + value.length()).substring(1));
    oRet.add(oNew);
      }
  }
View Full Code Here

      List<KeyValuePair> properties = getConfig().childPropertyList();
      if (getConfig().getAttribute(ListenerTagNames.MAX_THREADS_TAG) != null) {
        maxThreads = getConfig().getAttribute(ListenerTagNames.MAX_THREADS_TAG);
      }
      properties.add(new KeyValuePair("maxThreads", maxThreads));

      HttpServerDelegate.getInstance().createConnector(address, port, properties);
      HttpServerDelegate.getInstance().addContext(HttpServerDelegate.defaultVHost, ctx);
    } else {
      //add it to jboss.web servlet engine
View Full Code Here

        String[] sa = sCurr.split("=");
        if (sa.length != 2 || sa[1].charAt(0) != '\''
            || sa[1].charAt(-1 + sa[1].length()) != '\'')
          throw new ConfigurationException("Illegal message selector syntax <"
              + selector + ">  list of comma separated key='value' expected");
        KeyValuePair oNew = new KeyValuePair(sa[0], sa[1].substring(0,
            -1 + sa[1].length()).substring(1));
        oRet.put(oNew.getKey(), oNew.getValue());
      }
    }
    return oRet;
  }
View Full Code Here

        // this servlet instance...
        servlet.getUrlMappings().add(urlMapping);

        String allowedPorts = webEndpointConfig.getAttribute(Servlet.ALLOWED_PORTS);
        if(allowedPorts != null) {
            servlet.getParams().add( new KeyValuePair(Servlet.ALLOWED_PORTS, allowedPorts) );
        }

        // Add the endpoint address of the servlet...
        addEndpointAddress(webEndpointConfig, servlet, urlMapping);

        // Add the security configurations for the servlet...
        addSecurityConstraints(webEndpointConfig, servlet);

        // Map all config tree attributes as servlet parameters...
        servlet.getParams().addAll(webEndpointConfig.attributesAsList());
        servlet.getParams().add(new KeyValuePair(ListenerTagNames.DEPLOYMENT_NAME_TAG, deploymentName)) ;
    }
View Full Code Here

        path = path.substring(0, path.length() - 4) + urlMapping; // remove ".war" and add urlMapping
        while (path.endsWith("*") || path.endsWith("/")) {
          path = path.substring(0, path.length()-1);
        }
        String address = ( secure ? HttpConfiguration.getSecureAddress(path) : HttpConfiguration.getAddress(path) );
         servlet.getParams().add( new KeyValuePair(Servlet.ENDPOINT_ADDRESS, address) );
         servlet.setEndpointAddress(address); // for the deployers
    }
View Full Code Here

          sVal = sVal.substring(0, iPos) + oRpl.toString() + sVal.substring(iPos + sMac.length());
          break;
        }
      }
      if (bSubst)
          changed.add(new KeyValuePair(currAtt,sVal));
    }
    for (KeyValuePair kvp : changed)
      domTree.setAttribute(kvp.getKey(),kvp.getValue());
    changed  = null;
   
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.helpers.KeyValuePair

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.