Examples of MultiMap


Examples of com.adito.core.MultiMap

             * LDP - Use the full URI with parameters as we need to ensure parameters are sent as they are received.
             */
      method = new ProxiedHttpMethod(requestProcessor.getWebForward().getFormType(),
          SessionInfoReplacer.replace(requestProcessor.getSessionInfo(),
          requestProcessor.getUriEncoded()),
          requestProcessor.getWebForward().getFormType().equals(WebForwardTypes.FORM_SUBMIT_POST)? new MultiMap() : requestParameters,
          requestProcessor.getSessionInfo(),
          requestProcessor.getWebForward().getFormType().equals(WebForwardTypes.FORM_SUBMIT_POST));

      if (requestProcessor.getWebForward().getEncoding() != null && !requestProcessor.getWebForward().getEncoding().equals(WebForwardTypes.DEFAULT_ENCODING))
                method.setCharsetEncoding(requestProcessor.getWebForward().getEncoding());
View Full Code Here

Examples of com.adito.core.MultiMap

       * This code will automatically submit form parameters. If it is a post,
       * then we ignore the parameters request and use the webforward target.
       */
      method = new ProxiedHttpMethod(webForward.getFormType(),
              target.getFile(),
              webForward.getFormType().equals(WebForwardTypes.FORM_SUBMIT_POST) new MultiMap() : new MultiMap(request.getParameters()),
              launchSession.getSession(),
              webForward.getFormType().equals(WebForwardTypes.FORM_SUBMIT_POST));

      if (webForward.getCharset() != null
          && !webForward.getCharset().equals("")
          && !webForward.getCharset().equals(WebForwardTypes.DEFAULT_ENCODING))
        method.setCharsetEncoding(webForward.getCharset());

      StringTokenizer tokens = new StringTokenizer(webForward.getFormParameters(), "\n");
      int idx;
      String param;
     
      while (tokens.hasMoreTokens()) {
        param = v.replace(tokens.nextToken().trim());
        idx = param.indexOf('=');
        if (idx > -1) {
          method.addParameter(param.substring(0, idx), param.substring(idx + 1));
        } else
          method.addParameter(param, "");
      }
     
      launchSession.setAttribute(LAUNCH_ATTR_AUTH_POSTED, Boolean.TRUE);
      processRequestHeaders(request, method);
     
      // Do not send through any cookies on the authentication request
      method.getProxiedRequest().removeFields(HttpConstants.HDR_COOKIE);
      client.removeAllCookies();

    } else {
      method = new ProxiedHttpMethod(request.getMethod(),
              request.getURIEncoded(),
              new MultiMap(request.getParameters()),
              launchSession.getSession(),
              request.getContentType() != null && request.getContentType()
                      .toLowerCase()
                      .startsWith("application/x-www-form-urlencoded"));
      if (webForward.getCharset() != null
View Full Code Here

Examples of com.adito.core.MultiMap

       
        cookies = wrapping.getCookies();
        characterEncoding = wrapping.getCharacterEncoding();
        authType = wrapping.getAuthType();
        headerNames = new Vector<String>();
        headers = new MultiMap();
        for(Enumeration e = wrapping.getHeaderNames();
            e.hasMoreElements(); ) {
            String headerName = (String)e.nextElement();
            for(Enumeration f = wrapping.getHeaders(headerName); f.hasMoreElements(); ) {
                String headerValue = (String)f.nextElement();               
View Full Code Here

Examples of com.adito.core.MultiMap

    }
    }
   
   
    public MultiMap getURIParameters() {
      MultiMap output = new MultiMap();
      StringTokenizer tokens = new StringTokenizer(getOriginalURIParameters(), "&");
      int idx;
      String name;
      while(tokens.hasMoreTokens()) {
        name = tokens.nextToken();
        idx = name.indexOf('=');
        if(idx > -1) {
           output.add(URLUTF8Encoder.decode(name.substring(0, idx)), URLUTF8Encoder.decode(name.substring(idx+1)));
        } else {
           output.add(URLUTF8Encoder.decode(name), "");
        }
      }
      return output;
    }
View Full Code Here

Examples of com.google.common.collect.Multimap

    activeIcon = IconHelper.forItem(par1IconRegister, this, 1);
  }

  @Override
  public Multimap getItemAttributeModifiers() {
    Multimap multimap = HashMultimap.create();
    multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", DAMAGE, 0));
    multimap.put(SharedMonsterAttributes.movementSpeed.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", 0.25, 1));
    return multimap;
  }
View Full Code Here

Examples of com.google.common.collect.Multimap

    // We store the multimap as a Map<String,List<String>> to insulate us from google-collections API churn
    // And to remain backwards compatible

    Map<String, List<String>> headerCopyMap = (Map<String, List<String>>)in.readObject();
    Multimap headerCopy = newHeaderMultimap();

    for (Map.Entry<String,List<String>> entry : headerCopyMap.entrySet()) {
      headerCopy.putAll(entry.getKey(), entry.getValue());
    }

    int bodyLength = in.readInt();
    responseBytes = new byte[bodyLength];
    int cnt, offset = 0;
View Full Code Here

Examples of com.google.common.collect.Multimap

    // We store the multimap as a Map<String,List<String>> to insulate us from google-collections API churn
    // And to remain backwards compatible

    Map<String, List<String>> headerCopyMap = (Map<String, List<String>>)in.readObject();
    Multimap headerCopy = newHeaderMultimap();

    for (Map.Entry<String,List<String>> entry : headerCopyMap.entrySet()) {
      headerCopy.putAll(entry.getKey(), entry.getValue());
    }

    int bodyLength = in.readInt();
    responseBytes = new byte[bodyLength];
    int cnt, offset = 0;
View Full Code Here

Examples of com.google.common.collect.Multimap

    // We store the multimap as a Map<String,List<String>> to insulate us from google-collections API churn
    // And to remain backwards compatible

    Map<String, List<String>> headerCopyMap = (Map<String, List<String>>)in.readObject();
    Multimap headerCopy = newHeaderMultimap();

    for (Map.Entry<String,List<String>> entry : headerCopyMap.entrySet()) {
      headerCopy.putAll(entry.getKey(), entry.getValue());
    }

    int bodyLength = in.readInt();
    responseBytes = new byte[bodyLength];
    int cnt, offset = 0;
View Full Code Here

Examples of com.hazelcast.core.MultiMap

                        LocalTopicStatsImpl stats = (LocalTopicStatsImpl) topic.getLocalTopicStats();
                        memberState.putLocalTopicStats(topic.getName(), stats);
                        count++;
                    }
                } else if (distributedObject instanceof MultiMap) {
                    MultiMap multiMap = (MultiMap) distributedObject;
                    if (config.findMultiMapConfig(multiMap.getName()).isStatisticsEnabled()) {
                        LocalMultiMapStatsImpl stats = (LocalMultiMapStatsImpl) multiMap.getLocalMultiMapStats();
                        memberState.putLocalMultiMapStats(multiMap.getName(), stats);
                        count++;
                    }
                } else if (distributedObject instanceof IExecutorService) {
                    IExecutorService executorService = (IExecutorService) distributedObject;
                    if (config.findExecutorConfig(executorService.getName()).isStatisticsEnabled()) {
View Full Code Here

Examples of com.hazelcast.core.MultiMap

        int count = 0;
        final Config config = instance.getConfig();
        for (DistributedObject distributedObject : distributedObjects) {
            if (count < maxVisibleInstanceCount) {
                if (distributedObject instanceof MultiMap) {
                    MultiMap multiMap = (MultiMap) distributedObject;
                    if (config.findMultiMapConfig(multiMap.getName()).isStatisticsEnabled()) {
                        setLongInstanceNames.add("m:" + multiMap.getName());
                        count++;
                    }
                } else if (distributedObject instanceof IMap) {
                    IMap map = (IMap) distributedObject;
                    if (config.findMapConfig(map.getName()).isStatisticsEnabled()) {
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.