public class RedirectorDoc extends WebDoc
WebDoc.HTTPCodeDATA_BYTE, DATA_STREAM| Constructor and Description |
|---|
RedirectorDoc(String url) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
byteData()
If you want to return the documents data as a byte[],
you have to do that here.
|
void |
close()
This method is called after the transmission.
|
String |
dataType()
Specifies the Type of served data.
|
String |
mime()
This method has to return the MIME-Type of the Document.
|
String |
name()
This method has to return the FileName of the Document.
|
long |
size()
This method has to return the size of the Document in bytes.
|
InputStream |
streamData()
If you want to return the documents data as a Stream,
you have to do that here.
|
getHeaders, getHttpCode, setHTTPCodepublic RedirectorDoc(String url)
url - The URL to redirect to.public long size()
WebDocpublic String mime()
WebDocpublic String name()
WebDocpublic byte[] byteData()
WebDocpublic InputStream streamData()
WebDocstreamData in class WebDocpublic String dataType()
WebDocCopyright © 2020 Software Atelier Kamber. All rights reserved.