public abstract class DefaultBufferedStreamContent extends java.lang.Object implements IBufferedStreamContent
| Constructor and Description |
|---|
DefaultBufferedStreamContent() |
| 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()
Optional: return length of content in number of bytes.
|
java.lang.String |
getCurrentClientFileName()
If the access to the buffered content is associated with a client
file download, then the name of the client file may be available
via this method.
|
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() |
java.lang.String |
getId() |
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.
|
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, waitgetContentType, writeStreampublic long getContentLength()
IBufferedStreamContentgetContentLength in interface IBufferedStreamContentpublic void setExtension(java.lang.String value)
public java.lang.String getExtension()
public java.lang.String getId()
getId in interface IBufferedStreamContentpublic void setFileName(java.lang.String value)
setExtension(String).public java.lang.String getFileName()
public java.lang.String getURL()
getURL in interface IBufferedStreamContent@Deprecated public java.lang.String getURLForBROWSERUsage()
getURL(). The embedded mode ist not supported with
the RISC client.
getURLForBROWSERUsage in interface IBufferedStreamContentpublic void passClientFileName(java.lang.String clientFileName)
passClientFileName in interface IBufferedStreamContentpublic void passCurrentRequestQueryString(java.lang.String queryString)
passCurrentRequestQueryString in interface IBufferedStreamContentpublic java.lang.String getCurrentRequestQueryString()
public void passCurrentRequestURL(java.lang.String url)
passCurrentRequestURL in interface IBufferedStreamContentpublic java.lang.String getCurrentClientFileName()
public java.lang.String getCurrentRequestURL()
public void beginGetting()
beginGetting in interface IBufferedStreamContentpublic void endGetting()
endGetting in interface IBufferedStreamContentpublic void preProcessResponse(HttpServletResponse response)
preProcessResponse in interface IBufferedStreamContentCopyright © CaptainCasa Gmbh. All Rights Reserved.