|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.webadmin.webdav.DAVResponse
This is a wrapper class that provides additional DAV-specific functionality
| Field Summary | |
static String |
DAV_NS
|
protected javax.servlet.ServletOutputStream |
out
|
| Constructor Summary | |
DAVResponse(javax.servlet.http.HttpServletResponse response)
Creates new instance of DAVRequest. |
|
| Method Summary | |
void |
addDateHeader(String header,
long date)
Wrapper method, adds date header to HTTP response. |
void |
addHeader(String header,
String value)
Wrapper method, adds header to HTTP response. |
void |
closeMultistatusResponse()
For multi-status responses, close the response document. |
javax.servlet.ServletOutputStream |
getOutputStream()
Wrapper method, returns HTTP response output stream |
String |
getProtocol()
Returns protocol/version. |
void |
sendMultiStatusResponse(PartialResponse res)
For multi-status responses, send a partial response. |
void |
sendRedirect(String redirect)
Wrapper method, sends redirect |
void |
setContentLength(int contentLength)
Wrapper method, sets HTTP response content length |
void |
setContentType(String mimeType)
Wrapper method, sets HTTP response content type |
void |
setProtocol(String protocol)
Sets protocol/version string that is used for multi status responses. |
void |
setStatus(int status)
Wrapper method, sets HTTP response status. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DAV_NS
protected final javax.servlet.ServletOutputStream out
| Constructor Detail |
public DAVResponse(javax.servlet.http.HttpServletResponse response)
throws IOException
response - HttpServletResponse| Method Detail |
public void sendMultiStatusResponse(PartialResponse res)
throws IOException
res - partial response information
IOException - Servlet IOException
public void closeMultistatusResponse()
throws IOException
IOException - Servlet IOExceptionpublic void setStatus(int status)
status -
public void addHeader(String header,
String value)
header - Header namevalue - Header value
public void addDateHeader(String header,
long date)
header - Header namedate - Header valuepublic void setContentType(String mimeType)
mimeType - public void setContentLength(int contentLength)
contentLength -
public javax.servlet.ServletOutputStream getOutputStream()
throws IOException
IOException
public void sendRedirect(String redirect)
throws IOException
redirect -
IOExceptionpublic void setProtocol(String protocol)
protocol - Protocol name and version (e.g. HTTP/1.1)public String getProtocol()
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||