com.metamatrix.connector.xml.http
Class HTTPConnectorState

java.lang.Object
  extended by com.metamatrix.connector.xml.base.XMLConnectorStateImpl
      extended by com.metamatrix.connector.xml.base.SecureConnectorStateImpl
          extended by com.metamatrix.connector.xml.http.HTTPConnectorState
All Implemented Interfaces:
BaseXMLConnectorState, SecureConnectorState, XMLConnectorState, java.lang.Cloneable
Direct Known Subclasses:
SOAPConnectorState

public class HTTPConnectorState
extends SecureConnectorStateImpl


Field Summary
static java.lang.String ACCESS_METHOD
           
static java.lang.String GET
           
static java.lang.String HOSTNAME_VERIFIER
           
static java.lang.String HTTP_BASIC_PASSWORD
           
static java.lang.String HTTP_BASIC_USER
           
static java.lang.String PARAMETER_METHOD
           
static java.lang.String PARAMETER_NAME_VALUE
           
static java.lang.String PARAMETER_NONE
           
static java.lang.String PARAMETER_XML_QUERY_STRING
           
static java.lang.String PARAMETER_XML_REQUEST
           
static java.lang.String POST
           
static java.lang.String PROXY_URI
           
static java.lang.String REQUEST_TIMEOUT
           
static java.lang.String URI
           
static java.lang.String USE_HTTP_BASIC_AUTH
           
static java.lang.String XML_PARAMETER_NAME
           
 
Fields inherited from class com.metamatrix.connector.xml.base.XMLConnectorStateImpl
CACHE_ENABLED, CACHE_TIMEOUT, CONNECTOR_CAPABILITES, FILE_CACHE_LOCATION, INPUT_STREAM_FILTER_CLASS, LOG_REQUEST_RESPONSE_DOCS, logger, MAX_FILE_CACHE_SIZE, MAX_IN_MEMORY_STRING_SIZE, MAX_MEMORY_CACHE_SIZE, QUERY_PREPROCESS_CLASS, QUERY_PREPROCESS_CLASS_DEFAULT, SAX_FILTER_PROVIDER_CLASS, SAX_FILTER_PROVIDER_CLASS_DEFAULT
 
Fields inherited from interface com.metamatrix.connector.xml.SecureConnectorState
SECURITY_DESERIALIZER_CLASS
 
Fields inherited from interface com.metamatrix.connector.xml.XMLConnectorState
STATE_CLASS_PROP
 
Constructor Summary
HTTPConnectorState()
           
 
Method Summary
 java.lang.String getAccessMethod()
           
 org.apache.commons.httpclient.HttpClient getClient()
           
 Connection getConnection(CachingConnector connector, ExecutionContext context, ConnectorEnvironment environment)
           
 java.lang.String getHttpBasicAuthPwd()
           
 java.lang.String getHttpBasicAuthUser()
           
 java.lang.String getParameterMethod()
           
 java.lang.String getProxyUri()
           
 int getRequestTimeout()
           
 java.util.Properties getState()
           
 java.lang.String getUri()
           
 java.lang.String getXmlParameterName()
           
 DocumentProducer makeExecutor(XMLExecution execution)
           
 void setAccessMethod(java.lang.String accessMethod)
           
 void setHttpBasicAuthPwd(java.lang.String m_httpBasicAuthPwd)
           
 void setHttpBasicAuthUser(java.lang.String m_httpBasicAuthUser)
           
 void setParameterMethod(java.lang.String parameterMethod)
           
 void setProxyUri(java.lang.String proxyUri)
           
 void setRequestTimeout(int requestTimeout)
           
 void setState(ConnectorEnvironment env)
           
 void setUri(java.lang.String uri)
           
 void setUseHttpBasicAuth(boolean m_useHttpBasicAuth)
           
 void setXmlParameterName(java.lang.String xmlParameterName)
           
 boolean useHttpBasicAuth()
           
 
Methods inherited from class com.metamatrix.connector.xml.base.SecureConnectorStateImpl
getSecurityDeserializerClass, getTrustDeserializerInstance
 
Methods inherited from class com.metamatrix.connector.xml.base.XMLConnectorStateImpl
getCacheLocation, getCacheTimeoutMillis, getCacheTimeoutSeconds, getConnectorCapabilities, getLogger, getMaxFileCacheSizeByte, getMaxFileCacheSizeKB, getMaxInMemoryStringSize, getMaxMemoryCacheSizeByte, getMaxMemoryCacheSizeKB, getPluggableInputStreamFilterClass, getPreprocessor, getSAXFilterProvider, isLogRequestResponse, isNotNullOrEmpty, isPreprocess, setLogger, setPluggableInputStreamFilterClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET

public static final java.lang.String GET
See Also:
Constant Field Values

POST

public static final java.lang.String POST
See Also:
Constant Field Values

PARAMETER_NONE

public static final java.lang.String PARAMETER_NONE
See Also:
Constant Field Values

PARAMETER_NAME_VALUE

public static final java.lang.String PARAMETER_NAME_VALUE
See Also:
Constant Field Values

PARAMETER_XML_REQUEST

public static final java.lang.String PARAMETER_XML_REQUEST
See Also:
Constant Field Values

PARAMETER_XML_QUERY_STRING

public static final java.lang.String PARAMETER_XML_QUERY_STRING
See Also:
Constant Field Values

ACCESS_METHOD

public static final java.lang.String ACCESS_METHOD
See Also:
Constant Field Values

PARAMETER_METHOD

public static final java.lang.String PARAMETER_METHOD
See Also:
Constant Field Values

URI

public static final java.lang.String URI
See Also:
Constant Field Values

PROXY_URI

public static final java.lang.String PROXY_URI
See Also:
Constant Field Values

REQUEST_TIMEOUT

public static final java.lang.String REQUEST_TIMEOUT
See Also:
Constant Field Values

XML_PARAMETER_NAME

public static final java.lang.String XML_PARAMETER_NAME
See Also:
Constant Field Values

USE_HTTP_BASIC_AUTH

public static final java.lang.String USE_HTTP_BASIC_AUTH
See Also:
Constant Field Values

HTTP_BASIC_USER

public static final java.lang.String HTTP_BASIC_USER
See Also:
Constant Field Values

HTTP_BASIC_PASSWORD

public static final java.lang.String HTTP_BASIC_PASSWORD
See Also:
Constant Field Values

HOSTNAME_VERIFIER

public static final java.lang.String HOSTNAME_VERIFIER
See Also:
Constant Field Values
Constructor Detail

HTTPConnectorState

public HTTPConnectorState()
Method Detail

setState

public void setState(ConnectorEnvironment env)
              throws ConnectorException
Specified by:
setState in interface BaseXMLConnectorState
Overrides:
setState in class SecureConnectorStateImpl
Throws:
ConnectorException

getState

public java.util.Properties getState()
Specified by:
getState in interface BaseXMLConnectorState
Overrides:
getState in class SecureConnectorStateImpl

setAccessMethod

public void setAccessMethod(java.lang.String accessMethod)
Parameters:
m_accessMethod - The m_accessMethod to set.
Throws:
ConnectorException

getAccessMethod

public java.lang.String getAccessMethod()
Returns:
Returns the m_accessMethod.

setParameterMethod

public void setParameterMethod(java.lang.String parameterMethod)
Parameters:
m_parameterMethod - The m_parameterMethod to set.

getParameterMethod

public java.lang.String getParameterMethod()
Returns:
Returns the m_parameterMethod.

setUri

public void setUri(java.lang.String uri)
Parameters:
m_uri - The m_uri to set.

getUri

public java.lang.String getUri()
Returns:
Returns the m_uri.

setProxyUri

public void setProxyUri(java.lang.String proxyUri)
Parameters:
m_proxyUri - The m_proxyUri to set.

getProxyUri

public java.lang.String getProxyUri()
Returns:
Returns the m_proxyUri.

setRequestTimeout

public void setRequestTimeout(int requestTimeout)
Parameters:
m_requestTimeout - The m_requestTimeout to set.

getRequestTimeout

public int getRequestTimeout()
Returns:
Returns the m_requestTimeout.

setXmlParameterName

public void setXmlParameterName(java.lang.String xmlParameterName)
Parameters:
m_xmlParameterName - The m_xmlParameterName to set.

getXmlParameterName

public java.lang.String getXmlParameterName()
Returns:
Returns the m_xmlParameterName.

makeExecutor

public DocumentProducer makeExecutor(XMLExecution execution)
                              throws ConnectorException
Throws:
ConnectorException

getClient

public org.apache.commons.httpclient.HttpClient getClient()
                                                   throws ConnectorException
Throws:
ConnectorException

setUseHttpBasicAuth

public void setUseHttpBasicAuth(boolean m_useHttpBasicAuth)

useHttpBasicAuth

public boolean useHttpBasicAuth()

setHttpBasicAuthUser

public void setHttpBasicAuthUser(java.lang.String m_httpBasicAuthUser)

getHttpBasicAuthUser

public java.lang.String getHttpBasicAuthUser()

setHttpBasicAuthPwd

public void setHttpBasicAuthPwd(java.lang.String m_httpBasicAuthPwd)

getHttpBasicAuthPwd

public java.lang.String getHttpBasicAuthPwd()

getConnection

public Connection getConnection(CachingConnector connector,
                                ExecutionContext context,
                                ConnectorEnvironment environment)
                         throws ConnectorException
Throws:
ConnectorException


Copyright © 2009. All Rights Reserved.