1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo.http;
24
25 import java.io.IOException;
26
27 import org.apache.commons.httpclient.HttpMethod;
28
29 /***
30 * An Http method to a Lotus Domino server.
31 * This is only a markup interface to prevent from using unsupported methods.
32 *
33 * @author <a href=mailto:kriede@users.sourceforge.net>Kurt Riede</a>
34 */
35 public interface DominoHttpMethod extends HttpMethod {
36
37 /***
38 * Returns the response body as a string.
39 *
40 * This method respects the encoding of the response body of the content
41 * types <tt>text/html</tt> and <tt>text/xml</tt>:
42 *
43 * <dl>
44 * <dt><tt>text/html</tt></dt><dd>name of charset (encoding) is read from the <tt>Content-Type</tt> header</dd>
45 * <dt><tt>text/xml</tt></dt><dd>name of charset (encoding) is read from the XML tag in the response body</dd>
46 * </dl>
47 *
48 * @return response as String with proper encoding
49 * @throws IOException if the response cannot be read
50 */
51 String getResponseBodyString() throws IOException;
52 }