com.atlassian.cache.servlet.resolver
Class ResourceStreamResolver

java.lang.Object
  extended by com.atlassian.cache.servlet.resolver.ResourceStreamResolver
All Implemented Interfaces:
ContentResolver

public class ResourceStreamResolver
extends Object
implements ContentResolver

Implements a simple resolver that tries to find the resource off of the classpath.


Constructor Summary
ResourceStreamResolver()
           
 
Method Summary
 String getContent(String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method will utilize whatever strategey the implementor requires to attain the requested content.
 void init(javax.servlet.ServletConfig servletConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceStreamResolver

public ResourceStreamResolver()
Method Detail

getContent

public String getContent(String path,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws IOException,
                         javax.servlet.ServletException
Description copied from interface: ContentResolver
This method will utilize whatever strategey the implementor requires to attain the requested content.

Specified by:
getContent in interface ContentResolver
Parameters:
path - is the path to the requested content
request - an HttpServletRequest
response - an HttpServletResonse
Returns:
a string representing the content requested
Throws:
IOException
javax.servlet.ServletException

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface ContentResolver
Throws:
javax.servlet.ServletException


Atlassian Cache Servlet is developed by Atlassian Software Systems.