Examples of KeyValuePair


Examples of org.infinispan.util.KeyValuePair

         connectionFactory.releaseConnection(conn);
      }
   }

   private void updateStatement(MarshalledEntry entry, String key, PreparedStatement ps) throws InterruptedException, SQLException {
      ByteBuffer byteBuffer = JdbcUtil.marshall(ctx.getMarshaller(), new KeyValuePair(entry.getValueBytes(), entry.getMetadataBytes()));
      ps.setBinaryStream(1, new ByteArrayInputStream(byteBuffer.getBuf(), byteBuffer.getOffset(), byteBuffer.getLength()), byteBuffer.getLength());
      ps.setLong(2, getExpiryTime(entry.getMetadata()));
      ps.setString(3, key);
   }
View Full Code Here

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

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

            + 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

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

      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

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

        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

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

        // 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

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

        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

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

          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

Examples of org.jruby.compiler.ir.operands.KeyValuePair

                Operand v = build(nextNode, m);
                if (key == null) {
                    key = v;
                }
                else {
                    args.add(new KeyValuePair(key, v));
                    key = null;
                }
            }
            return new Hash(args);
        }
View Full Code Here

Examples of org.jruby.ir.operands.KeyValuePair

            for (Node nextNode : hashNode.getListNode().childNodes()) {
                Operand v = build(nextNode, s);
                if (key == null) {
                    key = v;
                } else {
                    args.add(new KeyValuePair(key, v));
                    key = null;
                }
            }
            return copyAndReturnValue(s, new Hash(args));
        }
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.