Package org.ajax4jsf.resource

Examples of org.ajax4jsf.resource.ResourceNotFoundException


         * @see org.ajax4jsf.resource.ResourceBuilderImpl#getResourceDataForKey(java.lang.String)
         */
    public Object getResourceDataForKey(String key) {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return bean.getData();
    }
View Full Code Here


         */
    public InternetResource getResourceForKey(String key)
      throws ResourceNotFoundException {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return super.getResourceForKey(bean.getKey());
    }
View Full Code Here

         * @see org.ajax4jsf.resource.ResourceBuilderImpl#getResourceDataForKey(java.lang.String)
         */
    public Object getResourceDataForKey(String key) {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return bean.getData();
    }
View Full Code Here

         */
    public InternetResource getResourceForKey(String key)
      throws ResourceNotFoundException {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return super.getResourceForKey(bean.getKey());
    }
View Full Code Here

      throws ResourceNotFoundException {

    InternetResource internetResource = (InternetResource) resources
        .get(path);
    if (null == internetResource) {
      throw new ResourceNotFoundException("Resource not registered : "
          + path);
    } else {
      return internetResource;
    }
  }
View Full Code Here

          }
          return res;
        }
      }
    }
    throw new ResourceNotFoundException(Messages.getMessage(
        Messages.STATIC_RESOURCE_NOT_FOUND_ERROR, path));
  }
View Full Code Here

      setRenderer(res, path);
      res.setLastModified(new Date(getStartTime()));
      addResource(key, res);
      return res;
    } else {
      throw new ResourceNotFoundException(Messages.getMessage(
          Messages.NO_RESOURCE_EXISTS_ERROR, key));
    }

  }
View Full Code Here

      } catch (Exception e) {
        String message = Messages.getMessage(
            Messages.INSTANTIATE_RESOURCE_ERROR, instatiate
                .toString());
        log.error(message, e);
        throw new ResourceNotFoundException(message, e);
      }
      return resource;
    }
    throw new FacesException(Messages
        .getMessage(Messages.INSTANTIATE_CLASS_ERROR));
View Full Code Here

         * @see org.ajax4jsf.resource.ResourceBuilderImpl#getResourceDataForKey(java.lang.String)
         */
    public Object getResourceDataForKey(String key) {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return bean.getData();
    }
View Full Code Here

         */
    public InternetResource getResourceForKey(String key)
      throws ResourceNotFoundException {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return super.getResourceForKey(bean.getKey());
    }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.resource.ResourceNotFoundException

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.