Package org.gatein.common.util

Examples of org.gatein.common.util.ParameterMap


      //
      Map<String, String[]> parameters;
      if (queryString != null && queryString.length() > 0)
      {
         ParameterMap tmp = new ParameterMap();
         tmp.putAll(QueryStringParser.getInstance().parseQueryString(queryString));
         tmp.append(preq.getParameterMap());
         parameters = tmp;
      }
      else
      {
         parameters = preq.getParameterMap();
View Full Code Here


               else
               {
                  params.put(paramName, new String[]{paramValue});
               }
            }
            formParameters = new ParameterMap(params);
         }

         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         parts.writeTo(baos);
         content = baos.toByteArray();
View Full Code Here

      public ParameterMap getForm()
      {
         if (formParameters == null)
         {
            formParameters = new ParameterMap();
         }
         return formParameters;
      }
View Full Code Here

               else
               {
                  params.put(paramName, new String[]{paramValue});
               }
            }
            formParameters = new ParameterMap(params);
         }
         else
         {
            formParameters = new ParameterMap();
         }

      }
View Full Code Here

   private final ParameterMap parameters;

   public ParameterEncoder(CodecBuilder builder)
   {
      this.builder = new CodecBuilder(builder);
      this.parameters = new ParameterMap();
   }
View Full Code Here

   private final ParameterMap actualParameters;

   public ParameterDecoder(CodecBuilder builder)
   {
      this.builder = builder;
      this.actualParameters = new ParameterMap();
      this.metaParameters = new ParameterMap();
   }
View Full Code Here

      PortletInfo info = context.portletControllerContext.getPortletInfo(portletWindowId);

      //
      if (info != null)
      {
         ParameterMap publicNavigationalState = new ParameterMap();
         for (ParameterInfo parameterInfo : info.getNavigation().getPublicParameters())
         {
            String[] parameterValue = page.get(parameterInfo.getName());

            //
            if (parameterValue != null)
            {
               String parameterId = parameterInfo.getId();

               // We clone the value here so we keep the internal state not potentially changed
               publicNavigationalState.put(parameterId, parameterValue.clone());
            }
         }

         //
         return publicNavigationalState;
View Full Code Here

      {
         throw new IllegalArgumentException("Name should not be null");
      }

      //
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? parameters.getValue(name) : null;
   }
View Full Code Here

      return parameters != null ? parameters.getValue(name) : null;
   }

   public Enumeration<String> getParameterNames()
   {
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? Collections.enumeration(parameters.keySet()) : (Enumeration<String>)Tools.EMPTY_ENUMERATION;
   }
View Full Code Here

      {
         throw new IllegalArgumentException("Name shoudl not be null");
      }

      //
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? parameters.getValues(name) : null;
   }
View Full Code Here

TOP

Related Classes of org.gatein.common.util.ParameterMap

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.