org.apache.jetspeed.decoration.validators
Class WebApplicationResourceValidator

java.lang.Object
  extended by org.apache.jetspeed.decoration.validators.WebApplicationResourceValidator
All Implemented Interfaces:
ResourceValidator, org.springframework.web.context.ServletContextAware

public class WebApplicationResourceValidator
extends java.lang.Object
implements ResourceValidator, org.springframework.web.context.ServletContextAware

This implementation uses ServletContext.getResource() to verify the existence of a resource.

Author:
Scott T. Weaver

Constructor Summary
WebApplicationResourceValidator()
           
 
Method Summary
 boolean resourceExists(java.lang.String path)
          Validates whether or not a resource exists.
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplicationResourceValidator

public WebApplicationResourceValidator()
Method Detail

resourceExists

public boolean resourceExists(java.lang.String path)
Description copied from interface: ResourceValidator
Validates whether or not a resource exists.

Specified by:
resourceExists in interface ResourceValidator
Parameters:
path - Path to verify.
Returns:
true if a resource exists at the path specified, otherwise returns false.

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.