public abstract class WebDoc extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
WebDoc.HTTPCode |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_BYTE
This static var defines that the
data of a WebDoc-Object is a byte[].
|
static String |
DATA_STREAM
This static var returns that the
data of a WebDoc-Object is a stream.
|
| Constructor and Description |
|---|
WebDoc() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
byteData()
If you want to return the documents data as a byte[],
you have to do that here.
|
abstract void |
close()
This method is called after the transmission.
|
abstract String |
dataType()
Specifies the Type of served data.
|
ArrayList<HeaderField> |
getHeaders() |
WebDoc.HTTPCode |
getHttpCode() |
abstract String |
mime()
This method has to return the MIME-Type of the Document.
|
abstract String |
name()
This method has to return the FileName of the Document.
|
void |
setHTTPCode(int code,
String message)
Sets the HTTP Response Code.
|
abstract long |
size()
This method has to return the size of the Document in bytes.
|
abstract InputStream |
streamData()
If you want to return the documents data as a Stream,
you have to do that here.
|
public static final String DATA_STREAM
public static final String DATA_BYTE
public abstract long size()
public abstract String mime()
public abstract String name()
public abstract byte[] byteData()
public abstract InputStream streamData()
public abstract String dataType()
public abstract void close()
public final void setHTTPCode(int code,
String message)
code - message - public WebDoc.HTTPCode getHttpCode()
public ArrayList<HeaderField> getHeaders()
Copyright © 2020 Software Atelier Kamber. All rights reserved.