|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.connector.BaseConnector
public abstract class BaseConnector
This base class underlies all connector implementations.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected IThreadContext |
currentContext
|
protected ConfigParams |
params
|
| Constructor Summary | |
|---|---|
BaseConnector()
|
|
| Method Summary | |
|---|---|
java.lang.String |
check()
Test the connection. |
void |
clearThreadContext()
Clear out any state information specific to a given thread. |
void |
connect(ConfigParams configParams)
Connect. |
void |
deinstall(IThreadContext threadContext)
Uninstall the connector. |
void |
disconnect()
Close the connection. |
ConfigParams |
getConfiguration()
Get configuration information. |
void |
install(IThreadContext threadContext)
Install the connector. |
void |
outputConfigurationBody(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.lang.String tabName)
Output the configuration body section. |
void |
outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.util.ArrayList tabsArray)
Output the configuration header section. |
void |
poll()
This method is periodically called for all connectors that are connected but not in active use. |
java.lang.String |
processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
ConfigParams parameters)
Process a configuration post. |
void |
setThreadContext(IThreadContext threadContext)
Attach to a new thread. |
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters)
View configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected ConfigParams params
protected IThreadContext currentContext
| Constructor Detail |
|---|
public BaseConnector()
| Method Detail |
|---|
public void install(IThreadContext threadContext)
throws ManifoldCFException
install in interface IConnectorthreadContext - is the current thread context.
ManifoldCFException
public void deinstall(IThreadContext threadContext)
throws ManifoldCFException
deinstall in interface IConnectorthreadContext - is the current thread context.
ManifoldCFExceptionpublic void connect(ConfigParams configParams)
connect in interface IConnectorconfigParams - are the configuration parameters for this connection.
public java.lang.String check()
throws ManifoldCFException
check in interface IConnectorManifoldCFException
public void poll()
throws ManifoldCFException
poll in interface IConnectorManifoldCFException
public void disconnect()
throws ManifoldCFException
disconnect in interface IConnectorManifoldCFExceptionpublic void clearThreadContext()
clearThreadContext in interface IConnectorpublic void setThreadContext(IThreadContext threadContext)
setThreadContext in interface IConnectorthreadContext - is the new thread context.public ConfigParams getConfiguration()
getConfiguration in interface IConnector
public void outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.util.ArrayList tabsArray)
throws ManifoldCFException,
java.io.IOException
outputConfigurationHeader in interface IConnectorthreadContext - is the local thread context.out - is the output to which any HTML should be sent.parameters - are the configuration parameters, as they currently exist, for this connection being configured.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 outputConfigurationBody(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.lang.String tabName)
throws ManifoldCFException,
java.io.IOException
public java.lang.String processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
ConfigParams parameters)
throws ManifoldCFException
processConfigurationPost in interface IConnectorthreadContext - is the local thread context.variableContext - is the set of variables available from the post, including binary file post information.parameters - are the configuration parameters, as they currently exist, for this connection being configured.
ManifoldCFException
public void viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters)
throws ManifoldCFException,
java.io.IOException
viewConfiguration in interface IConnectorthreadContext - is the local thread context.out - is the output to which any HTML should be sent.parameters - are the configuration parameters, as they currently exist, for this connection being configured.
ManifoldCFException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||