|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.servlet.FileHandler
public class FileHandler
Basically a file servlet component that does some very limitted EL type processing on the file. See the source for the cheat.
| Constructor Summary | |
|---|---|
FileHandler()
Create a new FileHandler |
|
FileHandler(java.lang.String filePath,
java.lang.String mimeType,
boolean dynamic)
Create a new FileHandler |
|
| Method Summary | |
|---|---|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
void |
setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
|
void |
setCompressionLevel(int compressionLevel)
|
void |
setDynamic(boolean dynamic)
Are we expected to do the minor EL type processing? |
void |
setFilePath(java.lang.String filePath)
|
void |
setIgnoreLastModified(boolean ignoreLastModified)
|
void |
setMimeType(java.lang.String mimeType)
The mime type to send the output under |
void |
setOverridePath(java.lang.String overridePath)
If we need to override the default path |
void |
setScriptCompressed(boolean scriptCompressed)
To what level do we compress scripts? |
void |
setScriptTagProtection(java.lang.String scriptTagProtection)
What is the string we use for script tag hack protection |
void |
setSessionCookieName(java.lang.String sessionCookieName)
Alter the session cookie name from the default JSESSIONID. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileHandler(java.lang.String filePath,
java.lang.String mimeType,
boolean dynamic)
filePath - The filePath to search for, process and outputmimeType - The mime type to use for this output filedynamic - Should the script be recalculated each time?public FileHandler()
| Method Detail |
|---|
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
Handler
handle in interface Handlerrequest - The HTTP request dataresponse - Where we write the HTTP response data
java.io.IOException - If the write process failspublic void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
allowGetForSafariButMakeForgeryEasier - Do we reduce security to help Safaripublic void setIgnoreLastModified(boolean ignoreLastModified)
ignoreLastModified - The ignoreLastModified to set.public void setSessionCookieName(java.lang.String sessionCookieName)
sessionCookieName - the sessionCookieName to setpublic void setScriptCompressed(boolean scriptCompressed)
scriptCompressed - The scriptCompressed to set.public void setCompressionLevel(int compressionLevel)
compressionLevel - The compressionLevel to set.public void setFilePath(java.lang.String filePath)
filePath - the filePath to setpublic void setDynamic(boolean dynamic)
dynamic - the dynamic to setpublic void setMimeType(java.lang.String mimeType)
mimeType - the mimeType to setpublic void setScriptTagProtection(java.lang.String scriptTagProtection)
scriptTagProtection - the scriptTagProtection to setpublic void setOverridePath(java.lang.String overridePath)
overridePath - The new override path
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||