com.metamatrix.connector.xml.http
Class HTTPRequestor

java.lang.Object
  extended by com.metamatrix.connector.xml.http.HTTPRequestor

public class HTTPRequestor
extends java.lang.Object


Constructor Summary
HTTPRequestor(ConnectorLogger logger, java.lang.String accessMethod)
           
 
Method Summary
 java.io.InputStream fetchXMLDocument(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method, boolean allowHttp500)
           
 org.apache.commons.httpclient.HttpMethod generateMethod(java.lang.String uriString)
           
protected static java.lang.String outputStringFromDoc(org.jdom.Document doc)
           
protected  void setStdRequestHeaders(org.apache.commons.httpclient.HttpMethod method)
           
 void validateURL(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPRequestor

public HTTPRequestor(ConnectorLogger logger,
                     java.lang.String accessMethod)
Method Detail

generateMethod

public org.apache.commons.httpclient.HttpMethod generateMethod(java.lang.String uriString)

setStdRequestHeaders

protected void setStdRequestHeaders(org.apache.commons.httpclient.HttpMethod method)

fetchXMLDocument

public java.io.InputStream fetchXMLDocument(org.apache.commons.httpclient.HttpClient client,
                                            org.apache.commons.httpclient.HttpMethod method,
                                            boolean allowHttp500)
                                     throws ConnectorException
Throws:
ConnectorException

validateURL

public void validateURL(java.lang.String uri)
                 throws java.io.IOException
Throws:
java.io.IOException

outputStringFromDoc

protected static java.lang.String outputStringFromDoc(org.jdom.Document doc)


Copyright © 2009. All Rights Reserved.