Package org.apache.wicket.request.resource

Examples of org.apache.wicket.request.resource.IResource


    else if (requestHandler instanceof SharedResourceReference) {
      url = encodeSharedResourceUrl(url);
    }
    else if (requestHandler instanceof ResourceReferenceRequestHandler) {
      ResourceReferenceRequestHandler resourceReferenceRequestHandler = (ResourceReferenceRequestHandler) requestHandler;
      IResource resource = resourceReferenceRequestHandler.getResource();

      if (resource instanceof PackageResource) {
        url = encodeSharedResourceUrl(url);
      }
      else {
View Full Code Here


    {
      return;
    }

    String path = mountAnnotation.value();
    final IResource resourceInstance = (IResource) clazz.newInstance();

    application.mountResource(path, new ResourceReference(clazz.getSimpleName())
    {
      /**
            *
 
View Full Code Here

        String token = tokens.nextToken();

        // on the last component of the resource path
        if (tokens.hasMoreTokens() == false && Strings.isEmpty(token) == false)
        {
          final IResource resource = reference.getResource();

          // apply caching if required
          if (resource instanceof IStaticCacheableResource)
          {
            // add caching related information to filename + query parameters
View Full Code Here

    final String filename = segments.get(lastSegmentAt);

    if (Strings.isEmpty(filename) == false)
    {
      // TODO is calling getResource() a potential performance bottleneck?
      final IResource resource = resourceReference.getResource();

      if (resource instanceof IStaticCacheableResource)
      {
        final IStaticCacheableResource cacheable = (IStaticCacheableResource)resource;
        final ResourceUrl cacheUrl = new ResourceUrl(filename, parameters);
View Full Code Here

      application = new MockApplication();
      WicketFilter filter = new WicketFilter();
      filter.init(new FilterTestingConfig());
      ThreadContext.setApplication(application);
      final String failure = "Should never get here when an OPTIONS request is issued";
      IResource resource = new AbstractResource()
      {
        @Override
        protected ResourceResponse newResourceResponse(Attributes attributes)
        {
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.resource.IResource

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.