public class SSIServletExternalResolver extends Object implements SSIExternalResolver
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SSIServletExternalResolver.ServletContextAndPath |
| Modifier and Type | Field and Description |
|---|---|
protected ServletContext |
context |
protected int |
debug |
protected String |
inputEncoding |
protected boolean |
isVirtualWebappRelative |
protected HttpServletRequest |
req |
protected HttpServletResponse |
res |
protected String[] |
VARIABLE_NAMES |
| Constructor and Description |
|---|
SSIServletExternalResolver(ServletContext context,
HttpServletRequest req,
HttpServletResponse res,
boolean isVirtualWebappRelative,
int debug,
String inputEncoding) |
protected final String[] VARIABLE_NAMES
protected ServletContext context
protected HttpServletRequest req
protected HttpServletResponse res
protected boolean isVirtualWebappRelative
protected int debug
protected String inputEncoding
public SSIServletExternalResolver(ServletContext context, HttpServletRequest req, HttpServletResponse res, boolean isVirtualWebappRelative, int debug, String inputEncoding)
public void log(String message, Throwable throwable)
log in interface SSIExternalResolverpublic void addVariableNames(Collection<String> variableNames)
SSIExternalResolveraddVariableNames in interface SSIExternalResolvervariableNames - the collection to add toprotected boolean isNameReserved(String name)
public void setVariableValue(String name, String value)
SSIExternalResolversetVariableValue in interface SSIExternalResolvername - of the variablevalue - of the variablepublic String getVariableValue(String name)
getVariableValue in interface SSIExternalResolverpublic Date getCurrentDate()
SSIExternalResolvergetCurrentDate in interface SSIExternalResolverprotected String getPathWithoutContext(String contextPath, String servletPath)
protected 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(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 © 2000-2016 Apache Software Foundation. All Rights Reserved.