public interface DavResponse
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value.
|
Object |
getOriginalResponse()
Returns the original response that will be handled by the chosen web container.
|
OutputStream |
getOutputStream()
Returns a
OutputStream suitable for writing binary
data in the response. |
void |
setCharacterEncoding(String encoding)
Sets the character encoding of the response.
|
void |
setContentLength(long length)
Sets the content length of the response.
|
void |
setContentType(String type)
Sets the MIME content type of the response
|
void |
setHeader(String name,
String value)
Sets a response header with the given name and value.
|
void |
setStatus(int code,
String description)
Sets status code of the response.
|
void addHeader(String name, String value)
name - Header name.value - Header value.void setStatus(int code,
String description)
code - Status code.description - Status description.void setContentLength(long length)
length - An long length of the response.void setContentType(String type)
type - Content type.void setCharacterEncoding(String encoding)
encoding - String encoding.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.void setHeader(String name, String value)
name - Header name.value - Header value.Object getOriginalResponse()
Copyright © ITHit. All Rights Reserved.