org.apache.jetspeed.decoration.validators
Class WebApplicationResourceValidator

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

public class WebApplicationResourceValidator
extends Object
implements org.apache.jetspeed.decoration.ResourceValidator, org.springframework.web.context.ServletContextAware

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

Author:
Scott T. Weaver

Field Summary
private  javax.servlet.ServletContext servletContext
           
 
Constructor Summary
WebApplicationResourceValidator()
           
 
Method Summary
 boolean resourceExists(String path)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContext

private javax.servlet.ServletContext servletContext
Constructor Detail

WebApplicationResourceValidator

public WebApplicationResourceValidator()
Method Detail

resourceExists

public boolean resourceExists(String path)
Specified by:
resourceExists in interface org.apache.jetspeed.decoration.ResourceValidator

setServletContext

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


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