Package org.apache.wicket.request.target.resource

Examples of org.apache.wicket.request.target.resource.ISharedResourceRequestTarget


  }

  @Override
  public boolean matches(final IRequestTarget requestTarget) {
    if (requestTarget instanceof ISharedResourceRequestTarget) {
      final ISharedResourceRequestTarget target = (ISharedResourceRequestTarget) requestTarget;
      return super.matches(requestTarget) || _mergedKeys.contains(target.getResourceKey());
    } else {
      return false;
    }
  }
View Full Code Here


      sb.append("(").append(pageRequestTarget.getPageParameters()).append(")");
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

      sb.append("(").append(pageRequestTarget.getPageParameters()).append(")");
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

    {
      throw new IllegalArgumentException("This encoder can only be used with instances of " +
        ISharedResourceRequestTarget.class.getName());
    }

    final ISharedResourceRequestTarget target = (ISharedResourceRequestTarget)requestTarget;

    // create url to shared resource
    final AppendingStringBuffer url = new AppendingStringBuffer();
    url.append(getMountPath());

    final RequestParameters requestParameters = target.getRequestParameters();

    @SuppressWarnings("unchecked")
    Map<String, Object> params = requestParameters.getParameters();

    if (params != null)
View Full Code Here

    if (!(requestTarget instanceof ISharedResourceRequestTarget))
    {
      return false;
    }

    final ISharedResourceRequestTarget target = (ISharedResourceRequestTarget)requestTarget;
    return resourceKey.equals(target.getRequestParameters().getResourceKey());
  }
View Full Code Here

      sb.append(pageRequestTarget.getPageClass().getName());
      sb.append("]");
    }
    else if (target instanceof ISharedResourceRequestTarget)
    {
      ISharedResourceRequestTarget sharedResourceTarget = (ISharedResourceRequestTarget)target;
      sb.append("SharedResource[");
      sb.append(sharedResourceTarget.getResourceKey());
      sb.append("]");
    }
    else
    {
      sb.append(target.toString());
View Full Code Here

    {
      throw new IllegalArgumentException("This encoder can only be used with instances of " +
        ISharedResourceRequestTarget.class.getName());
    }

    final ISharedResourceRequestTarget target = (ISharedResourceRequestTarget)requestTarget;

    // create url to shared resource
    final AppendingStringBuffer url = new AppendingStringBuffer();
    url.append(getMountPath());

    final RequestParameters requestParameters = target.getRequestParameters();

    Map<String, ?> params = requestParameters.getParameters();

    if (params != null)
    {
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.target.resource.ISharedResourceRequestTarget

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.