public abstract class DavResponse extends Object
| Constructor and Description |
|---|
DavResponse() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addHeader(String name,
String value)
Adds a response header with the given name and value.
|
abstract Object |
getOriginalResponse()
Returns the original response that will be handled by the chosen web container.
|
abstract OutputStream |
getOutputStream()
Returns a
OutputStream suitable for writing binary
data in the response. |
abstract void |
setCharacterEncoding(String encoding)
Sets the character encoding of the response.
|
abstract void |
setContentLength(long length)
Sets the content length of the response.
|
abstract void |
setContentType(String type)
Sets the MIME content type of the response
|
abstract void |
setHeader(String name,
String value)
Sets a response header with the given name and value.
|
abstract void |
setStatus(int code,
String description)
Sets status code of the response.
|
public abstract void addHeader(String name, String value)
name - Header name.value - Header value.public abstract void setStatus(int code,
String description)
code - Status code.description - Status description.public abstract void setContentLength(long length)
length - An long length of the response.public abstract void setContentType(String type)
type - Content type.public abstract void setCharacterEncoding(String encoding)
encoding - String encoding.public abstract OutputStream getOutputStream() throws IOException
OutputStream suitable for writing binary
data in the response.OutputStream for writing binary data.IOException - if an input or output exception occurred.public abstract void setHeader(String name, String value)
name - Header name.value - Header value.public abstract Object getOriginalResponse()
Copyright © ITHit. All Rights Reserved.