org.apache.catalina.ssi
Class SSIServletExternalResolver
public
class
SSIServletExternalResolver
extends Object
implements SSIExternalResolver
An implementation of SSIExternalResolver that is used with servlets.
Version: $Revision: 739532 $, $Date: 2009-01-31 10:52:13 +0100 (Sat, 31 Jan 2009) $
Author: Dan Sandberg David Becker
protected ServletContext context
protected int debug
protected String inputEncoding
protected boolean isVirtualWebappRelative
protected HttpServletRequest req
protected HttpServletResponse res
protected final String[] VARIABLE_NAMES
public SSIServletExternalResolver(ServletContext context, HttpServletRequest req, HttpServletResponse res, boolean isVirtualWebappRelative, int debug, String inputEncoding)
public void addVariableNames(Collection variableNames)
protected String getAbsolutePath(String path)
protected String getCGIVariable(String name)
public Date getCurrentDate()
public long getFileLastModified(String path, boolean virtual)
public long getFileSize(String path, boolean virtual)
public String getFileText(String originalPath, boolean virtual)
protected String getPathWithoutContext(String contextPath, String servletPath)
protected String getPathWithoutFileName(String servletPath)
protected Object getReqAttributeIgnoreCase(String targetName)
protected URLConnection getURLConnection(String originalPath, boolean virtual)
public String getVariableValue(String name)
protected boolean isNameReserved(String name)
protected boolean isRootContext(ServletContext servletContext)
public void log(String message, Throwable throwable)
protected String nullToEmptyString(String string)
public void setVariableValue(String name, String value)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.