com.atlassian.cache.servlet.resolver
Class ResourceStreamResolver
java.lang.Object
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.
|
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 |
ResourceStreamResolver
public ResourceStreamResolver()
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 contentrequest - an HttpServletRequestresponse - 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