de.bea.domingo.http
Interface DominoHttpMethod

All Superinterfaces:
org.apache.commons.httpclient.HttpMethod
All Known Implementing Classes:
DominoGetMethod, DominoPostMethod

public interface DominoHttpMethod
extends org.apache.commons.httpclient.HttpMethod

An Http method to a Lotus Domino server. This is only a markup interface to prevent from using unsupported methods.

Author:
Kurt Riede

Method Summary
 java.lang.String getResponseBodyString()
          Returns the response body as a string.
 
Methods inherited from interface org.apache.commons.httpclient.HttpMethod
abort, addRequestHeader, addRequestHeader, addResponseFooter, execute, getDoAuthentication, getFollowRedirects, getHostAuthState, getHostConfiguration, getName, getParams, getPath, getProxyAuthState, getQueryString, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isRequestSent, isStrictMode, recycle, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setFollowRedirects, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validate
 

Method Detail

getResponseBodyString

java.lang.String getResponseBodyString()
                                       throws java.io.IOException
Returns the response body as a string. This method respects the encoding of the response body of the content types text/html and text/xml:
text/html
name of charset (encoding) is read from the Content-Type header
text/xml
name of charset (encoding) is read from the XML tag in the response body

Returns:
response as String with proper encoding
Throws:
java.io.IOException - if the response cannot be read


Domingo Java-API