|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.resolution.AbstractHttpResolution
org.loom.resolution.AbstractFileResolution
org.loom.resolution.InputStreamResolution
public class InputStreamResolution
Deliver the contents from an InputStream to the browser. The stream will be closed when finished.
| Constructor Summary | |
|---|---|
InputStreamResolution(java.io.File file)
Create a File-based InputStreamResolution. |
|
InputStreamResolution(java.io.InputStream stream)
Create a InputStreamResolution based on an InputStream Note that this construtor will not hint the browser about the saved file name. |
|
InputStreamResolution(java.lang.String filename,
java.io.File file)
Create a File-based InputStreamResolution |
|
InputStreamResolution(java.lang.String filename,
java.io.InputStream stream)
Create a InputStreamResolution based on an InputStream Note that this construtor will not hint the browser about the saved file name. |
|
InputStreamResolution(java.lang.String filename,
java.io.InputStream stream,
java.lang.Long fileSize)
Create a InputStreamResolution based on an InputStream Note that this construtor will not hint the browser about the saved file name. |
|
| Method Summary | |
|---|---|
void |
resolve(LoomServletRequest request,
LoomServletResponse response)
Write the response contents |
| Methods inherited from class org.loom.resolution.AbstractFileResolution |
|---|
addCookie, addCookie, addCookie, addHeader, calculateContentDispositionHeader, getFilename, getFileSize, isForceSave, isGuessMimeType, setCacheControl, setCharset, setContentType, setFilename, setFileSize, setForceSave, setGuessMimeType, setHeader, setHeaderIfNotPresent, writeHeaders |
| Methods inherited from class org.loom.resolution.AbstractHttpResolution |
|---|
addDateHeader, addIntHeader, containsHeader, getCacheControl, getCharset, getContentType, setDateHeader, setDateHeaderIfNotPresent, setIntHeader, setIntHeaderIfNotPresent, setJsonHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamResolution(java.io.File file)
throws java.io.FileNotFoundException
file - the file to be delivered to the browser
java.io.FileNotFoundException - if the file could not be found
public InputStreamResolution(java.lang.String filename,
java.io.File file)
throws java.io.FileNotFoundException
filename - the file name that will be used by the browser in the "Save-as" dialogfile - the file to be delivered to the browser
java.io.FileNotFoundException - if the file could not be foundpublic InputStreamResolution(java.io.InputStream stream)
stream - the inputStream to read contents from
public InputStreamResolution(java.lang.String filename,
java.io.InputStream stream)
stream - the inputStream to read contents fromfilename - the file name that will be used by the browser in the "Save-as" dialog (may be null)
public InputStreamResolution(java.lang.String filename,
java.io.InputStream stream,
java.lang.Long fileSize)
stream - the inputStream to read contents fromfilename - the file name that will be used by the browser in the "Save-as" dialog (may be null)fileSize - the file size (null if unknown)| Method Detail |
|---|
public void resolve(LoomServletRequest request,
LoomServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
Resolution
resolve in interface Resolutionresolve in class AbstractFileResolutionrequest - the current request objectresponse - the current response object
java.io.IOException
javax.servlet.ServletException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||