congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RequestParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
RequestParameter
in
com.ocpsoft.pretty.faces.config.mapping

Best Java code snippets using com.ocpsoft.pretty.faces.config.mapping.RequestParameter (Showing top 16 results out of 315)

origin: ocpsoft/rewrite

/**
* Add query parameters from the given list of {@link RequestParameter} objects. If a parameter already exists,
* append new values to the existing list of values for that parameter.
*/
public <T extends RequestParameter> void addParameters(final List<T> params)
{
 for (RequestParameter rp : params)
 {
   String value = rp.getValue();
   String name = rp.getName();
   if (!parameters.containsKey(name))
   {
    ArrayList<String> values = new ArrayList<String>();
    if (value != null)
    {
      values.add(value);
    }
    parameters.put(name, values);
   }
   else
   {
    parameters.get(name).add(value);
   }
 }
}
origin: ocpsoft/rewrite

public boolean isNamed()
{
 return (null != super.getName()) && !"".equals(super.getName().trim());
}
origin: com.ocpsoft/prettyfaces-jsf2

public boolean isNamed()
{
 return (null != super.getName()) && !"".equals(super.getName().trim());
}
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Add query parameters from the given list of {@link RequestParameter} objects. If a parameter already exists,
* append new values to the existing list of values for that parameter.
*/
public <T extends RequestParameter> void addParameters(final List<T> params)
{
 for (RequestParameter rp : params)
 {
   String value = rp.getValue();
   String name = rp.getName();
   if (!parameters.containsKey(name))
   {
    ArrayList<String> values = new ArrayList<String>();
    if (value != null)
    {
      values.add(value);
    }
    parameters.put(name, values);
   }
   else
   {
    parameters.get(name).add(value);
   }
 }
}
origin: ocpsoft/prettyfaces

public boolean isNamed()
{
 return (null != super.getName()) && !"".equals(super.getName().trim());
}
origin: ocpsoft/prettyfaces

/**
* Add query parameters from the given list of {@link RequestParameter} objects. If a parameter already exists,
* append new values to the existing list of values for that parameter.
*/
public <T extends RequestParameter> void addParameters(final List<T> params)
{
 for (RequestParameter rp : params)
 {
   String value = rp.getValue();
   String name = rp.getName();
   if (!parameters.containsKey(name))
   {
    ArrayList<String> values = new ArrayList<String>();
    if (value != null)
    {
      values.add(value);
    }
    parameters.put(name, values);
   }
   else
   {
    parameters.get(name).add(value);
   }
 }
}
origin: ocpsoft/prettyfaces

public boolean isNamed()
{
 return (null != super.getName()) && !"".equals(super.getName().trim());
}
origin: ocpsoft/prettyfaces

/**
* Add query parameters from the given list of {@link RequestParameter} objects. If a parameter already exists,
* append new values to the existing list of values for that parameter.
*/
public <T extends RequestParameter> void addParameters(final List<T> params)
{
 for (RequestParameter rp : params)
 {
   String value = rp.getValue();
   String name = rp.getName();
   if (!parameters.containsKey(name))
   {
    ArrayList<String> values = new ArrayList<String>();
    if (value != null)
    {
      values.add(value);
    }
    parameters.put(name, values);
   }
   else
   {
    parameters.get(name).add(value);
   }
 }
}
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @since 3.2.0 
*/
public String build(final UrlMapping mapping, final boolean encodeUrl, final RequestParameter... parameters)
{
 List<UIParameter> list = new ArrayList<UIParameter>();
 if(parameters != null)
 {
   for (RequestParameter param : parameters)
   {
    UIParameter p = new UIParameter();
    if (param != null)
    {
      p.setValue(param.getName());
      p.setValue(param.getValue());
    }
    list.add(p);
   }
 }
 return build(mapping, false, list);
}
origin: ocpsoft/prettyfaces

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
origin: ocpsoft/prettyfaces

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @since 3.2.0 
*/
public String build(final UrlMapping mapping, final boolean encodeUrl, final RequestParameter... parameters)
{
 List<UIParameter> list = new ArrayList<UIParameter>();
 if(parameters != null)
 {
   for (RequestParameter param : parameters)
   {
    UIParameter p = new UIParameter();
    if (param != null)
    {
      p.setValue(param.getName());
      p.setValue(param.getValue());
    }
    list.add(p);
   }
 }
 return build(mapping, false, list);
}
origin: ocpsoft/rewrite

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
origin: ocpsoft/prettyfaces

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @since 3.2.0 
*/
public String build(final UrlMapping mapping, final boolean encodeUrl, final RequestParameter... parameters)
{
 List<UIParameter> list = new ArrayList<UIParameter>();
 if(parameters != null)
 {
   for (RequestParameter param : parameters)
   {
    UIParameter p = new UIParameter();
    if (param != null)
    {
      p.setValue(param.getName());
      p.setValue(param.getValue());
    }
    list.add(p);
   }
 }
 return build(mapping, false, list);
}
origin: ocpsoft/prettyfaces

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
origin: ocpsoft/rewrite

/**
* Build a Pretty URL for the given UrlMapping and parameters.
* 
* @since 3.2.0 
*/
public String build(final UrlMapping mapping, final boolean encodeUrl, final RequestParameter... parameters)
{
 List<UIParameter> list = new ArrayList<UIParameter>();
 if(parameters != null)
 {
   for (RequestParameter param : parameters)
   {
    UIParameter p = new UIParameter();
    if (param != null)
    {
      p.setValue(param.getName());
      p.setValue(param.getValue());
    }
    list.add(p);
   }
 }
 return build(mapping, false, list);
}
com.ocpsoft.pretty.faces.config.mappingRequestParameter

Most used methods

  • getName
  • getValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now