Examples of KeyValuePair


Examples of api.KeyValuePair

   *
   * @return the auth token convert into KeyValuePair object for GoogleLogin
   * header.
   */
  public KeyValuePair toAuthHeader(){
    return new KeyValuePair("Authorization", String.format("GoogleLogin auth=\"%s\"", this.authToken));
  }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.KeyValuePair

        T result = caseSplash(splash);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.KEY_VALUE_PAIR: {
        KeyValuePair keyValuePair = (KeyValuePair)theEObject;
        T result = caseKeyValuePair(keyValuePair);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      default: return defaultCase(theEObject);
View Full Code Here

Examples of cgl.imr.base.KeyValuePair

      try {
        value = new BytesValue(g.getBytes());
      } catch (SerializationException e) {
        e.printStackTrace();
      }
      keyValues.add(new KeyValuePair(key, value));
      keyNo++;
    }

    return keyValues;
  }
View Full Code Here

Examples of com.bj58.spat.gaea.protocol.utility.KeyValuePair

    public InvokeResult invoke(Parameter returnType, String typeName, String methodName, Parameter[] paras) throws Exception, Throwable {
        long watcher = System.currentTimeMillis();
        List<KeyValuePair> listPara = new ArrayList<KeyValuePair>();
        for (Parameter p : paras) {
            listPara.add(new KeyValuePair(p.getSimpleName(), p.getValue()));
        }
        RequestProtocol requestProtocol = new RequestProtocol(typeName, methodName, listPara);
        Protocol sendP = new Protocol(createSessionId(),
            (byte) config.getServiceid(),
            SDPType.Request,
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.KeyValuePair

    List<KeyValuePair> parameters =
      encoder.generateParameters(cart, merchantKey);

    for (Iterator it = parameters.iterator(); it.hasNext();) {
      KeyValuePair pair = (KeyValuePair) it.next();

      page.append("  <input type='hidden' name='").append(pair.getKey()).
      append("' value='").append(pair.getValue()).append("'>\n");
    }

    page.append("  Post the cart:\n");
    page.append("  <input type='submit' name='Post'>\n");
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.KeyValuePair

    final String encodedCart = Encoder.encode(xmlCart);

    log.debug("Signing the cart");
    final String signedCart = Encoder.sign(xmlCart, key);

    parameters.add(new KeyValuePair("cart", encodedCart));

    parameters.add(new KeyValuePair("signature", signedCart));

    log.trace("Leaving generateParameters");
    return parameters;
  }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.KeyValuePair

      log.trace("Generating parameters for this cart:\n" + theCart);
    }
    final String encodedCart = Encoder.encode(theCart);
    final String signedCart = Encoder.sign(theCart, theKey);

    parameters.add(new KeyValuePair("cart", encodedCart));
    parameters.add(new KeyValuePair("signature", signedCart));
    return parameters;
  }
View Full Code Here

Examples of com.google.walkaround.proto.ProtocolDocumentOperation.Component.KeyValuePair

    operation.acceptVisitor(visitor);
    return visitor.getMessage();
  }

  private static KeyValuePair createKeyValuePair(String key, String value) {
    KeyValuePair attribute = MessageFactoryHelper.createDocumentKeyValuePair();
    attribute.setKey(key);
    if (value != null) {
      attribute.setValue(value);
    }
    return attribute;
  }
View Full Code Here

Examples of com.liferay.portal.kernel.util.KeyValuePair

      }
     
      if (userId != null && password != null && companyId != null) {
        try {
         
          KeyValuePair kvp = UserLocalServiceUtil.decryptUserId(Long.parseLong(companyId), userId, password);

          userByScreenName = UserLocalServiceUtil.getUserById(Long.valueOf(kvp.getKey()));
        } catch (NumberFormatException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (PortalException e) {
          // TODO Auto-generated catch block
View Full Code Here

Examples of com.liferay.util.KeyValuePair

        user.setPasswordReset(true);

        UserUtil.update(user);
      }

      return new KeyValuePair(userId, password);
    }
    else {
      throw new PrincipalException();
    }
  }
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.