public class SSIServletExternalResolver extends Object implements SSIExternalResolver
| Modifier and Type | Class and Description |
|---|---|
protected class |
SSIServletExternalResolver.ServletContextAndPath |
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
context |
protected int |
debug |
protected String |
inputEncoding |
protected boolean |
isVirtualWebappRelative |
protected javax.servlet.http.HttpServletRequest |
req |
protected javax.servlet.http.HttpServletResponse |
res |
protected String[] |
VARIABLE_NAMES |
| Constructor and Description |
|---|
SSIServletExternalResolver(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
boolean isVirtualWebappRelative,
int debug,
String inputEncoding) |
protected final String[] VARIABLE_NAMES
protected javax.servlet.ServletContext context
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse res
protected boolean isVirtualWebappRelative
protected int debug
protected String inputEncoding
public SSIServletExternalResolver(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
boolean isVirtualWebappRelative,
int debug,
String inputEncoding)
public void log(String message, Throwable throwable)
log in interface SSIExternalResolverpublic void addVariableNames(Collection<String> variableNames)
addVariableNames in interface SSIExternalResolverprotected boolean isNameReserved(String name)
public void setVariableValue(String name, String value)
setVariableValue in interface SSIExternalResolverpublic String getVariableValue(String name)
getVariableValue in interface SSIExternalResolverpublic Date getCurrentDate()
getCurrentDate in interface SSIExternalResolverprotected String getAbsolutePath(String path) throws IOException
IOExceptionprotected SSIServletExternalResolver.ServletContextAndPath getServletContextAndPathFromNonVirtualPath(String nonVirtualPath) throws IOException
IOExceptionprotected SSIServletExternalResolver.ServletContextAndPath getServletContextAndPathFromVirtualPath(String virtualPath) throws IOException
IOExceptionprotected boolean isRootContext(javax.servlet.ServletContext servletContext)
protected SSIServletExternalResolver.ServletContextAndPath getServletContextAndPath(String originalPath, boolean virtual) throws IOException
IOExceptionprotected URLConnection getURLConnection(String originalPath, boolean virtual) throws IOException
IOExceptionpublic long getFileLastModified(String path, boolean virtual) throws IOException
getFileLastModified in interface SSIExternalResolverIOExceptionpublic long getFileSize(String path, boolean virtual) throws IOException
getFileSize in interface SSIExternalResolverIOExceptionpublic String getFileText(String originalPath, boolean virtual) throws IOException
getFileText in interface SSIExternalResolverIOExceptionCopyright © 2016. All Rights Reserved.