|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.connector.BaseConnector
org.apache.manifoldcf.agents.output.BaseOutputConnector
public abstract class BaseOutputConnector
This base class describes an instance of a connection between an output pipeline and the Connector Framework. Each instance of this interface is used in only one thread at a time. Connection Pooling on these kinds of objects is performed by the factory which instantiates repository connectors from symbolic names and config parameters, and is pooled by these parameters. That is, a pooled connector handle is used only if all the connection parameters for the handle match. Implementers of this interface should provide a default constructor which has this signature: xxx(); Connectors are either configured or not. If configured, they will persist in a pool, and be reused multiple times. Certain methods of a connector may be called before the connector is configured. This includes basically all methods that permit inspection of the connector's capabilities.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
| Fields inherited from class org.apache.manifoldcf.core.connector.BaseConnector |
|---|
currentContext, params |
| Fields inherited from interface org.apache.manifoldcf.agents.interfaces.IOutputConnector |
|---|
DOCUMENTSTATUS_ACCEPTED, DOCUMENTSTATUS_REJECTED |
| Constructor Summary | |
|---|---|
BaseOutputConnector()
|
|
| Method Summary | |
|---|---|
boolean |
checkDocumentIndexable(java.io.File localFile)
Pre-determine whether a document (passed here as a File object) is indexable by this connector. |
boolean |
checkMimeTypeIndexable(java.lang.String mimeType)
Detect if a mime type is indexable or not. |
java.lang.String[] |
getActivitiesList()
Return the list of activities that this connector supports (i.e. |
void |
noteJobComplete(IOutputNotifyActivity activities)
Notify the connector of a completed job. |
void |
outputSpecificationBody(IHTTPOutput out,
OutputSpecification os,
java.lang.String tabName)
Output the specification body section. |
void |
outputSpecificationHeader(IHTTPOutput out,
OutputSpecification os,
java.util.ArrayList tabsArray)
Output the specification header section. |
java.lang.String |
processSpecificationPost(IPostParameters variableContext,
OutputSpecification os)
Process a specification post. |
boolean |
requestInfo(Configuration output,
java.lang.String command)
Request arbitrary connector information. |
void |
viewSpecification(IHTTPOutput out,
OutputSpecification os)
View specification. |
| Methods inherited from class org.apache.manifoldcf.core.connector.BaseConnector |
|---|
check, clearThreadContext, connect, deinstall, disconnect, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, poll, processConfigurationPost, setThreadContext, viewConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.manifoldcf.agents.interfaces.IOutputConnector |
|---|
addOrReplaceDocument, getOutputDescription, removeDocument |
| Methods inherited from interface org.apache.manifoldcf.core.interfaces.IConnector |
|---|
check, clearThreadContext, connect, deinstall, disconnect, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, poll, processConfigurationPost, setThreadContext, viewConfiguration |
| Field Detail |
|---|
public static final java.lang.String _rcsid
| Constructor Detail |
|---|
public BaseOutputConnector()
| Method Detail |
|---|
public java.lang.String[] getActivitiesList()
getActivitiesList in interface IOutputConnector
public boolean requestInfo(Configuration output,
java.lang.String command)
throws ManifoldCFException
requestInfo in interface IOutputConnectoroutput - is the response object, to be filled in by this method.command - is the command, which is taken directly from the API request.
ManifoldCFException
public void noteJobComplete(IOutputNotifyActivity activities)
throws ManifoldCFException,
ServiceInterruption
noteJobComplete in interface IOutputConnectoractivities - is the handle to an object that the implementer of an output connector may use to perform operations, such as logging processing activity.
ManifoldCFException
ServiceInterruption
public boolean checkMimeTypeIndexable(java.lang.String mimeType)
throws ManifoldCFException,
ServiceInterruption
checkMimeTypeIndexable in interface IOutputConnectormimeType - is the mime type of the document.
ManifoldCFException
ServiceInterruption
public boolean checkDocumentIndexable(java.io.File localFile)
throws ManifoldCFException,
ServiceInterruption
checkDocumentIndexable in interface IOutputConnectorlocalFile - is the local file to check.
ManifoldCFException
ServiceInterruption
public void outputSpecificationHeader(IHTTPOutput out,
OutputSpecification os,
java.util.ArrayList tabsArray)
throws ManifoldCFException,
java.io.IOException
outputSpecificationHeader in interface IOutputConnectorout - is the output to which any HTML should be sent.os - is the current output specification for this job.tabsArray - is an array of tab names. Add to this array any tab names that are specific to the connector.
ManifoldCFException
java.io.IOException
public void outputSpecificationBody(IHTTPOutput out,
OutputSpecification os,
java.lang.String tabName)
throws ManifoldCFException,
java.io.IOException
public java.lang.String processSpecificationPost(IPostParameters variableContext,
OutputSpecification os)
throws ManifoldCFException
processSpecificationPost in interface IOutputConnectorvariableContext - contains the post data, including binary file-upload information.os - is the current output specification for this job.
ManifoldCFException
public void viewSpecification(IHTTPOutput out,
OutputSpecification os)
throws ManifoldCFException,
java.io.IOException
viewSpecification in interface IOutputConnectorout - is the output to which any HTML should be sent.os - is the current output specification for this job.
ManifoldCFException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||