public interface IConnector
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isConnected()
This method is called to assess whether to count this connector instance should
actually be counted as being connected.
|
void |
outputConfigurationBody(IThreadContext threadContext,
IHTTPOutput out,
java.util.Locale locale,
ConfigParams parameters,
java.lang.String tabName)
Output the configuration body section.
|
void |
outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
java.util.Locale locale,
ConfigParams parameters,
java.util.List<java.lang.String> 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,
java.util.Locale locale,
ConfigParams parameters)
Process a configuration post.
|
void |
setThreadContext(IThreadContext threadContext)
Attach to a new thread.
|
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
java.util.Locale locale,
ConfigParams parameters)
View configuration.
|
void install(IThreadContext threadContext) throws ManifoldCFException
threadContext - is the current thread context.ManifoldCFExceptionvoid deinstall(IThreadContext threadContext) throws ManifoldCFException
threadContext - is the current thread context.ManifoldCFExceptionvoid connect(ConfigParams configParams)
configParams - are the configuration parameters for this connection.java.lang.String check()
throws ManifoldCFException
ManifoldCFExceptionvoid poll() throws ManifoldCFException
ManifoldCFExceptionboolean isConnected()
void disconnect()
throws ManifoldCFException
ManifoldCFExceptionConfigParams getConfiguration()
void clearThreadContext()
void setThreadContext(IThreadContext threadContext) throws ManifoldCFException
threadContext - is the new thread context.ManifoldCFExceptionvoid outputConfigurationHeader(IThreadContext threadContext, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.util.List<java.lang.String> tabsArray) throws ManifoldCFException, java.io.IOException
threadContext - is the local thread context.out - is the output to which any HTML should be sent.locale - is the locale that the output should use.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.ManifoldCFExceptionjava.io.IOExceptionvoid outputConfigurationBody(IThreadContext threadContext, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.lang.String tabName) throws ManifoldCFException, java.io.IOException
threadContext - is the local thread context.out - is the output to which any HTML should be sent.locale - is the locale that the output should use.parameters - are the configuration parameters, as they currently exist, for this connection being configured.tabName - is the current tab name.ManifoldCFExceptionjava.io.IOExceptionjava.lang.String processConfigurationPost(IThreadContext threadContext, IPostParameters variableContext, java.util.Locale locale, ConfigParams parameters) throws ManifoldCFException
threadContext - is the local thread context.variableContext - is the set of variables available from the post, including binary file post information.locale - is the locale that the output should use.parameters - are the configuration parameters, as they currently exist, for this connection being configured.ManifoldCFExceptionvoid viewConfiguration(IThreadContext threadContext, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters) throws ManifoldCFException, java.io.IOException
threadContext - is the local thread context.out - is the output to which any HTML should be sent.locale - is the locale that the output should use.parameters - are the configuration parameters, as they currently exist, for this connection being configured.ManifoldCFExceptionjava.io.IOException