public abstract class DefaultBufferedContent extends java.lang.Object implements IBufferedContent
| Constructor and Description |
|---|
DefaultBufferedContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginGetting()
When overriding this method always call super() in your implementation!
|
void |
endGetting()
When overriding this method always call super() in your implementation!
|
long |
getContentLength()
Default implementation calls
IBufferedContent.getContent() and passes back the length
of the array. |
java.lang.String |
getCurrentClientFileName()
Deprecated.
|
java.lang.String |
getCurrentRequestQueryString()
When the buffered content is accessed then you may be interested in the URL
by which the buffered content is called. - This parameter is only valid
when the buffered content is actually requested from the client side.
|
java.lang.String |
getCurrentRequestURL()
When the buffered content is accessed then you may be interested in the URL
by which the buffered content is called. - This parameter is only valid
when the buffered content is actually requested from the client side.
|
java.lang.String |
getExtension() |
java.lang.String |
getFileName()
File name for download, which is set within the http header response parameters.
|
java.lang.String |
getId()
Returns the id under which the buffered content is registered.
|
java.lang.String |
getURL()
The URL that can be passed back to client side for accessing the
buffered content.
|
java.lang.String |
getURLForBROWSERUsage()
Deprecated.
|
void |
passClientFileName(java.lang.String clientFileName)
Internal usage. - The ccfilename-parameter of the current request, accessing
the buffered content is passed.
|
void |
passCurrentRequestQueryString(java.lang.String queryString)
Internal usage. - The request query string of the current request, accessing
the buffered content is passed.
|
void |
passCurrentRequestURL(java.lang.String url)
Internal usage. - The request URL of the current request, accessing
the buffered content is passed.
|
void |
preProcessResponse(HttpServletResponse response)
In the default implementation the header parameter "x-frame-options" is set
to "sameorigin" so that the buffered content is not embed-able into pages
coming from some different host.
|
void |
setExtension(java.lang.String value)
You may pass an optional extension (e.g.
|
void |
setFileName(java.lang.String value)
You may pass an optional file name (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, getContentTypepublic long getContentLength()
IBufferedContent.getContent() and passes back the length
of the array. Please pay attention: if getContent() is a complex method then you
definitely should override the getContentLength-implementation so that
IBufferedContent.getContent() is not called twice - first time for finding the length and
second time for finding the content. - This method is called in the
download scenario only, if the corresponding download component is explicitly
marked (e.g. FILEDOWNLOADBUTTON-WITHCONTENTSIZE).getContentLength in interface IBufferedContentpublic void setExtension(java.lang.String value)
setFileName(String).public java.lang.String getExtension()
public void setFileName(java.lang.String value)
setExtension(String).public java.lang.String getFileName()
IBufferedContentgetFileName in interface IBufferedContentpublic java.lang.String getId()
getId in interface IBufferedContentpublic java.lang.String getURL()
getURL in interface IBufferedContent@Deprecated public java.lang.String getURLForBROWSERUsage()
getURL(). The embedded mode ist not supported with
the RISC client.
getURLForBROWSERUsage in interface IBufferedContentpublic void passClientFileName(java.lang.String clientFileName)
passClientFileName in interface IBufferedContentpublic void passCurrentRequestURL(java.lang.String url)
passCurrentRequestURL in interface IBufferedContentpublic java.lang.String getCurrentRequestURL()
public void passCurrentRequestQueryString(java.lang.String queryString)
passCurrentRequestQueryString in interface IBufferedContentpublic java.lang.String getCurrentRequestQueryString()
@Deprecated public java.lang.String getCurrentClientFileName()
public void beginGetting()
beginGetting in interface IBufferedContentpublic void endGetting()
endGetting in interface IBufferedContentpublic void preProcessResponse(HttpServletResponse response)
preProcessResponse in interface IBufferedContentCopyright © CaptainCasa Gmbh. All Rights Reserved.