Package org.apache.wicket.request.target.coding

Examples of org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy


      {
        return mountsOnPath.strategyForMount(null);
      }
      else
      {
        IRequestTargetUrlCodingStrategy strategy = mountsOnPath.strategyForPath(path);
        if (strategy != null && !(strategy instanceof PassThroughUrlCodingStrategy))
        {
          return strategy;
        }
      }
View Full Code Here


   * @see org.apache.wicket.request.IRequestCodingStrategy#pathForTarget(org.apache.wicket.IRequestTarget)
   */
  public final CharSequence pathForTarget(IRequestTarget requestTarget)
  {
    // first check whether the target was mounted
    IRequestTargetUrlCodingStrategy encoder = getMountEncoder(requestTarget);
    if (encoder != null)
    {
      return encoder.encode(requestTarget);
    }
    return null;
  }
View Full Code Here

  /**
   * @see org.apache.wicket.request.IRequestCodingStrategy#targetForRequest(org.apache.wicket.request.RequestParameters)
   */
  public final IRequestTarget targetForRequest(RequestParameters requestParameters)
  {
    IRequestTargetUrlCodingStrategy encoder = urlCodingStrategyForPath(requestParameters.getPath());
    if (encoder == null)
    {
      return null;
    }
    return encoder.decode(requestParameters);
  }
View Full Code Here

      for (Entry<String, IRequestTargetUrlCodingStrategy> entry : map.entrySet())
      {
        final String key = entry.getKey();
        if (path.startsWith(key))
        {
          IRequestTargetUrlCodingStrategy strategy = entry.getValue();
          if (strategy.matches(path, caseSensitiveMounts))
          {
            return strategy;
          }
        }
      }
View Full Code Here

      {
        return mountsOnPath.strategyForMount(null);
      }
      else
      {
        IRequestTargetUrlCodingStrategy strategy = mountsOnPath.strategyForPath(path);
        if (strategy != null)
        {
          return strategy;
        }
      }
View Full Code Here

   * @see org.apache.wicket.request.IRequestCodingStrategy#pathForTarget(org.apache.wicket.IRequestTarget)
   */
  public final CharSequence pathForTarget(IRequestTarget requestTarget)
  {
    // first check whether the target was mounted
    IRequestTargetUrlCodingStrategy encoder = getMountEncoder(requestTarget);
    if (encoder != null)
    {
      return encoder.encode(requestTarget);
    }
    return null;
  }
View Full Code Here

  /**
   * @see org.apache.wicket.request.IRequestCodingStrategy#targetForRequest(org.apache.wicket.request.RequestParameters)
   */
  public final IRequestTarget targetForRequest(RequestParameters requestParameters)
  {
    IRequestTargetUrlCodingStrategy encoder = urlCodingStrategyForPath(requestParameters.getPath());
    if (encoder == null)
    {
      return null;
    }
    return encoder.decode(requestParameters);
  }
View Full Code Here

    {
      // TODO Post 1.2: Performance: Optimize algorithm if possible and/ or
      // cache lookup results
      for (Iterator i = mountsOnPath.strategies().iterator(); i.hasNext();)
      {
        IRequestTargetUrlCodingStrategy encoder = (IRequestTargetUrlCodingStrategy)i.next();
        if (encoder.matches(requestTarget))
        {
          return encoder;
        }
      }
    }
View Full Code Here

      {
        final Map.Entry entry = (Entry)it.next();
        final String key = (String)entry.getKey();
        if (path.startsWith(key))
        {
          IRequestTargetUrlCodingStrategy strategy = (IRequestTargetUrlCodingStrategy)entry.getValue();
          if (strategy.matches(path))
          {
            return strategy;
          }
        }
      }
View Full Code Here

      {
        return mountsOnPath.strategyForMount(null);
      }
      else
      {
        IRequestTargetUrlCodingStrategy strategy = mountsOnPath.strategyForPath(path);
        if (strategy != null && !(strategy instanceof PassThroughUrlCodingStrategy))
        {
          return strategy;
        }
      }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy

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.