com.metamatrix.connector.xml.base
Class XMLConnectorStateImpl

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

public abstract class XMLConnectorStateImpl
extends java.lang.Object
implements java.lang.Cloneable, XMLConnectorState


Field Summary
static java.lang.String CACHE_ENABLED
           
static java.lang.String CACHE_TIMEOUT
           
static java.lang.String CONNECTOR_CAPABILITES
           
static java.lang.String FILE_CACHE_LOCATION
           
static java.lang.String INPUT_STREAM_FILTER_CLASS
           
static java.lang.String LOG_REQUEST_RESPONSE_DOCS
           
protected  ConnectorLogger logger
           
static java.lang.String MAX_FILE_CACHE_SIZE
           
static java.lang.String MAX_IN_MEMORY_STRING_SIZE
           
static java.lang.String MAX_MEMORY_CACHE_SIZE
           
static java.lang.String QUERY_PREPROCESS_CLASS
           
static java.lang.String QUERY_PREPROCESS_CLASS_DEFAULT
           
static java.lang.String SAX_FILTER_PROVIDER_CLASS
           
static java.lang.String SAX_FILTER_PROVIDER_CLASS_DEFAULT
           
 
Fields inherited from interface com.metamatrix.connector.xml.XMLConnectorState
STATE_CLASS_PROP
 
Constructor Summary
XMLConnectorStateImpl()
           
 
Method Summary
 java.lang.String getCacheLocation()
           
 int getCacheTimeoutMillis()
           
 int getCacheTimeoutSeconds()
           
 ConnectorCapabilities getConnectorCapabilities()
           
 ConnectorLogger getLogger()
           
 int getMaxFileCacheSizeByte()
           
 int getMaxFileCacheSizeKB()
           
 int getMaxInMemoryStringSize()
           
 int getMaxMemoryCacheSizeByte()
           
 int getMaxMemoryCacheSizeKB()
           
 java.lang.String getPluggableInputStreamFilterClass()
           
 IQueryPreprocessor getPreprocessor()
           
 SAXFilterProvider getSAXFilterProvider()
           
 java.util.Properties getState()
           
 boolean isLogRequestResponse()
           
protected  boolean isNotNullOrEmpty(java.lang.String value)
           
 boolean isPreprocess()
           
 void setLogger(ConnectorLogger logger)
           
 void setPluggableInputStreamFilterClass(java.lang.String filterClass)
           
 void setState(ConnectorEnvironment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metamatrix.connector.xml.XMLConnectorState
getConnection, makeExecutor
 

Field Detail

CACHE_TIMEOUT

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

CACHE_ENABLED

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

MAX_IN_MEMORY_STRING_SIZE

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

MAX_MEMORY_CACHE_SIZE

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

MAX_FILE_CACHE_SIZE

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

FILE_CACHE_LOCATION

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

LOG_REQUEST_RESPONSE_DOCS

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

SAX_FILTER_PROVIDER_CLASS

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

QUERY_PREPROCESS_CLASS

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

INPUT_STREAM_FILTER_CLASS

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

SAX_FILTER_PROVIDER_CLASS_DEFAULT

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

QUERY_PREPROCESS_CLASS_DEFAULT

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

CONNECTOR_CAPABILITES

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

logger

protected ConnectorLogger logger
Constructor Detail

XMLConnectorStateImpl

public XMLConnectorStateImpl()
Method Detail

setState

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

setLogger

public void setLogger(ConnectorLogger logger)
Specified by:
setLogger in interface BaseXMLConnectorState

getLogger

public ConnectorLogger getLogger()
Specified by:
getLogger in interface BaseXMLConnectorState

getState

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

isNotNullOrEmpty

protected boolean isNotNullOrEmpty(java.lang.String value)

getCacheTimeoutSeconds

public final int getCacheTimeoutSeconds()
Specified by:
getCacheTimeoutSeconds in interface XMLConnectorState
Returns:
Returns the m_cacheTimeout.

getCacheTimeoutMillis

public final int getCacheTimeoutMillis()
Specified by:
getCacheTimeoutMillis in interface XMLConnectorState

isPreprocess

public boolean isPreprocess()
Specified by:
isPreprocess in interface XMLConnectorState

getConnectorCapabilities

public ConnectorCapabilities getConnectorCapabilities()
Specified by:
getConnectorCapabilities in interface XMLConnectorState

getMaxMemoryCacheSizeByte

public int getMaxMemoryCacheSizeByte()
Specified by:
getMaxMemoryCacheSizeByte in interface XMLConnectorState

getMaxMemoryCacheSizeKB

public int getMaxMemoryCacheSizeKB()
Specified by:
getMaxMemoryCacheSizeKB in interface XMLConnectorState

getMaxInMemoryStringSize

public int getMaxInMemoryStringSize()
Specified by:
getMaxInMemoryStringSize in interface XMLConnectorState

getMaxFileCacheSizeKB

public int getMaxFileCacheSizeKB()
Specified by:
getMaxFileCacheSizeKB in interface XMLConnectorState

getMaxFileCacheSizeByte

public int getMaxFileCacheSizeByte()
Specified by:
getMaxFileCacheSizeByte in interface XMLConnectorState

getCacheLocation

public java.lang.String getCacheLocation()
Specified by:
getCacheLocation in interface XMLConnectorState

isLogRequestResponse

public boolean isLogRequestResponse()
Specified by:
isLogRequestResponse in interface XMLConnectorState

getSAXFilterProvider

public SAXFilterProvider getSAXFilterProvider()
Specified by:
getSAXFilterProvider in interface XMLConnectorState

getPreprocessor

public IQueryPreprocessor getPreprocessor()
Specified by:
getPreprocessor in interface XMLConnectorState

setPluggableInputStreamFilterClass

public void setPluggableInputStreamFilterClass(java.lang.String filterClass)

getPluggableInputStreamFilterClass

public java.lang.String getPluggableInputStreamFilterClass()
Specified by:
getPluggableInputStreamFilterClass in interface XMLConnectorState


Copyright © 2009. All Rights Reserved.