com.metamatrix.connector.xml.file
Class FileExecutor

java.lang.Object
  extended by com.metamatrix.connector.xml.file.FileExecutor
All Implemented Interfaces:
DocumentProducer, NamedDocumentExecutor

public class FileExecutor
extends java.lang.Object
implements DocumentProducer, NamedDocumentExecutor


Field Summary
static java.lang.String PARM_FILE_NAME_TABLE_PROPERTY_NAME
           
 
Constructor Summary
FileExecutor(FileConnectorState state, XMLExecution execution)
           
 
Method Summary
 java.io.InputStream addStreamFilters(java.io.InputStream response, ConnectorLogger logger)
           
 java.lang.String getCacheKey(int i)
           
 int getDocumentCount()
           
 java.lang.String getDocumentName(int i)
           
 java.io.InputStream getDocumentStream(int i)
           
 java.io.Serializable getRequestObject(int i)
           
 Response getXMLResponse(int invocationNumber)
           
 XMLDocument recreateDocument(java.io.Serializable requestObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARM_FILE_NAME_TABLE_PROPERTY_NAME

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

FileExecutor

public FileExecutor(FileConnectorState state,
                    XMLExecution execution)
             throws ConnectorException
Throws:
ConnectorException
Method Detail

getDocumentCount

public int getDocumentCount()
                     throws ConnectorException
Specified by:
getDocumentCount in interface DocumentProducer
Throws:
ConnectorException

getCacheKey

public java.lang.String getCacheKey(int i)
                             throws ConnectorException
Specified by:
getCacheKey in interface DocumentProducer
Throws:
ConnectorException

getDocumentStream

public java.io.InputStream getDocumentStream(int i)
                                      throws ConnectorException
Throws:
ConnectorException

getXMLResponse

public Response getXMLResponse(int invocationNumber)
                        throws ConnectorException
Specified by:
getXMLResponse in interface DocumentProducer
Throws:
ConnectorException

addStreamFilters

public java.io.InputStream addStreamFilters(java.io.InputStream response,
                                            ConnectorLogger logger)
                                     throws ConnectorException
Throws:
ConnectorException

getDocumentName

public java.lang.String getDocumentName(int i)
                                 throws ConnectorException
Specified by:
getDocumentName in interface NamedDocumentExecutor
Throws:
ConnectorException

getRequestObject

public java.io.Serializable getRequestObject(int i)
                                      throws ConnectorException
Specified by:
getRequestObject in interface DocumentProducer
Throws:
ConnectorException

recreateDocument

public XMLDocument recreateDocument(java.io.Serializable requestObject)
                             throws ConnectorException
Throws:
ConnectorException


Copyright © 2009. All Rights Reserved.