de.bea.domingo.http
Class DominoGetMethod

java.lang.Object
  extended by org.apache.commons.httpclient.HttpMethodBase
      extended by org.apache.commons.httpclient.methods.GetMethod
          extended by de.bea.domingo.http.DominoGetMethod
All Implemented Interfaces:
DominoHttpMethod, org.apache.commons.httpclient.HttpMethod

public final class DominoGetMethod
extends org.apache.commons.httpclient.methods.GetMethod
implements DominoHttpMethod

An Http GET method to a Lotus Domino server.

Author:
Kurt Riede

Method Summary
(package private) static DominoGetMethod getInstance(java.lang.String uri)
          Returns a new instance of this class.
 java.lang.String getResponseBodyString()
          Returns the response body as a string.
 
Methods inherited from class org.apache.commons.httpclient.methods.GetMethod
getName, recycle
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addRequestHeaders, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getEffectiveVersion, getFollowRedirects, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processResponseBody, processResponseHeaders, processStatusLine, readResponse, readResponseBody, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequest, writeRequestBody, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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

getInstance

static DominoGetMethod getInstance(java.lang.String uri)
Returns a new instance of this class.

Parameters:
uri - the URI of the method
Returns:
a new instance

getResponseBodyString

public 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

Specified by:
getResponseBodyString in interface DominoHttpMethod
Returns:
response as String with proper encoding
Throws:
java.io.IOException - if the response cannot be read
See Also:
DominoHttpMethod.getResponseBodyString()


Domingo Java-API