public interface JSPProviderHelper
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called during the servlet context destroy to allow cleanup.
|
java.io.InputStream |
fromStream(java.lang.String providerURI)
Return the input stream for the providerURI.
|
long |
getLastModified(java.lang.String providerURI,
javax.servlet.http.HttpServletRequest request)
Return the lastModified time for the providerURI, or 0.
|
java.lang.String |
getProviderURI(java.lang.String requestURI)
Allows the provider to take ownership of the requestURI by returning
a non-null string.
|
void |
init(javax.servlet.ServletContext sc,
java.util.Hashtable initParams)
Called immediately after the constructor when the jsp servlet initializes.
|
void init(javax.servlet.ServletContext sc, java.util.Hashtable initParams)
sc
- The ServletContext for the current webapp.initParams
- The params from the jsp servlet - may remove this?void destroy()
java.lang.String getProviderURI(java.lang.String requestURI)
requestURI
- The UTF-8 decoded value from the incoming request.long getLastModified(java.lang.String providerURI, javax.servlet.http.HttpServletRequest request) throws java.io.FileNotFoundException, java.io.IOException
providerURI
- The value returned from getProviderURIrequest
- The current servlet request (may be null in rare circumstances)java.io.FileNotFoundException
java.io.IOException
File.lastModified()
java.io.InputStream fromStream(java.lang.String providerURI) throws java.io.FileNotFoundException, java.io.IOException
providerURI
- java.io.FileNotFoundException
java.io.IOException