|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.util.ssi.SsiMediator
Field Summary | |
protected static java.lang.String |
contextPath
The contextPath for this request |
protected static int |
debug
The debug level for this component |
protected static boolean |
isVirtualWebappRelative
How this request is being treated |
protected static javax.servlet.ServletContext |
origServletContext
The original ServletContext |
protected static java.io.OutputStream |
out
The outputStream to use |
protected static java.lang.String |
path
The path for this request |
protected static java.lang.String |
relpath
The relative path for this request |
protected static javax.servlet.http.HttpServletRequest |
req
The HttpServletResponse associated with this request |
protected static javax.servlet.http.HttpServletResponse |
res
The HttpServletResponse associated with this request. |
protected static java.util.Hashtable |
serverVariables
The Servervariables associated with this request |
protected static javax.servlet.ServletContext |
servletContext
The ServletContext associated with this request |
protected static java.util.Hashtable |
ssiCommands
The Commands associated with SSI. |
Constructor Summary | |
SsiMediator()
|
|
SsiMediator(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.io.OutputStream out,
javax.servlet.ServletContext servletContext,
int debug,
java.lang.String path,
boolean isVirtualWebappRelative)
Initialize and set up out enviroment, called from SsiInvokerServlet |
Method Summary | |
void |
flush(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.io.OutputStream out,
javax.servlet.ServletContext servletContext,
java.lang.String path,
boolean isVirtualWebappRelative)
Initialize and set up out enviroment, called from SsiInvokerServlet |
protected void |
flushDate()
Flush the date and make us ready for a new request. |
protected java.lang.String |
getCGIPath(java.lang.String path)
|
SsiCommand |
getCommand(java.lang.String cmd)
Get the SsiCommand |
protected java.lang.String |
getCommandPath(java.lang.String path)
|
byte[] |
getError()
Return the current error message |
protected java.lang.String |
getFilePath(java.lang.String path)
Return a path relative to the file being parsed, if they try to use "../" or have a trailing "/" we return null since that is not allowed within
a SSI file directive.
|
protected java.lang.String |
getServerVariable(java.lang.String serverVar)
Get a server variable |
protected java.lang.String |
getVirtualPath(java.lang.String path)
Return a path relative to either the webapp or the root("/") Example of valid paths: "/test/path/test.file" ".. |
protected java.lang.String |
timefmt(java.util.Date date)
Parse a Date according to the current settings. |
protected java.lang.String |
timefmt(java.lang.String date)
Parse a Date according to the current settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable serverVariables
protected static java.util.Hashtable ssiCommands
protected static javax.servlet.http.HttpServletRequest req
protected static javax.servlet.http.HttpServletResponse res
protected static java.io.OutputStream out
protected static javax.servlet.ServletContext servletContext
protected static javax.servlet.ServletContext origServletContext
protected static java.lang.String contextPath
protected static java.lang.String relpath
protected static java.lang.String path
protected static int debug
protected static boolean isVirtualWebappRelative
Constructor Detail |
public SsiMediator()
public SsiMediator(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.io.OutputStream out, javax.servlet.ServletContext servletContext, int debug, java.lang.String path, boolean isVirtualWebappRelative)
req
- The HttpServletRequest to useres
- The HttpServletResponse to useout
- The OutputStream to useservletContext
- The ServletContext to usepath
- The current pathisVirtualWebappRelative
- How this request is being treatedMethod Detail |
public final SsiCommand getCommand(java.lang.String cmd)
cmd
- The SsiCommand to get
public void flush(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.io.OutputStream out, javax.servlet.ServletContext servletContext, java.lang.String path, boolean isVirtualWebappRelative)
req
- The HttpServletRequest to useres
- The HttpServletResponse to useout
- The OutputStream to useservletContext
- The ServletContext to usepath
- The current pathisVirtualWebappRelative
- How this request is being treatedpublic byte[] getError()
protected void flushDate()
protected java.lang.String timefmt(java.util.Date date)
date
- The date to parse
protected java.lang.String timefmt(java.lang.String date)
date
- The date to parse
protected java.lang.String getServerVariable(java.lang.String serverVar)
serverVar
- The server variable to get
protected java.lang.String getVirtualPath(java.lang.String path)
path
- Path to be normalizedprotected java.lang.String getFilePath(java.lang.String path)
null
since that is not allowed within
a SSI file directive.
Example of valid path:
"test/path/test.file"
path
- Path to be normalizedprotected java.lang.String getCGIPath(java.lang.String path)
protected java.lang.String getCommandPath(java.lang.String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |