public interface IBufferedStreamContent
extends java.io.Serializable
DefaultBufferedContent requires the content
of what is downloaded to be kept in memory as a whole, this implementation
does not require so but allows a direct writing of content to an output
stream.| Modifier and Type | Method and Description |
|---|---|
void |
beginGetting()
Called directly before accessing the content.
|
void |
endGetting()
Called directly after accessing the content.
|
long |
getContentLength()
Optional: return length of content in number of bytes.
|
java.lang.String |
getContentType()
Content type of what is made available - e.g.
|
java.lang.String |
getId() |
java.lang.String |
getURL()
URL that can be passed to the client side component.
|
java.lang.String |
getURLForBROWSERUsage()
Deprecated.
|
void |
passClientFileName(java.lang.String clientFileName)
If the access to the buffered content is associated with the download
to a client file then the name of the file is passed through this
method.
|
void |
passCurrentRequestQueryString(java.lang.String value)
In case the buffered content is accessed from the client side then
the query string of the access is passed.
|
void |
passCurrentRequestURL(java.lang.String url)
In case the buffered content is accessed from the client side then
the URL of the access is passed.
|
void |
preProcessResponse(HttpServletResponse response)
This methods is called at the very beginning of the response processing.
|
void |
writeStream(java.io.OutputStream stream)
This is the "central method" for writing the content.
|
java.lang.String getId()
long getContentLength()
void preProcessResponse(HttpServletResponse response)
void writeStream(java.io.OutputStream stream)
java.lang.String getContentType()
java.lang.String getURL()
getURLForBROWSERUsage()@Deprecated java.lang.String getURLForBROWSERUsage()
getURL()
method.
void passClientFileName(java.lang.String clientFileName)
#getContent() or
getContentType() is called when a download is processed.void passCurrentRequestURL(java.lang.String url)
#getContent() or
getContentType() is called when a download is processed.void passCurrentRequestQueryString(java.lang.String value)
#getContent() or
getContentType() is called when a download is processed.void beginGetting()
void endGetting()
Copyright © CaptainCasa Gmbh. All Rights Reserved.