|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IConnector
This interface represents the base methods every configurable connector needs. Connector instances are pooled, so that session setup does not need to be done repeatedly. The pool is segregated by specific sets of configuration parameters.
| 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. |
| Method Detail |
|---|
void install(IThreadContext threadContext)
throws ManifoldCFException
threadContext - is the current thread context.
ManifoldCFException
void 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
ManifoldCFException
void poll()
throws ManifoldCFException
ManifoldCFException
void disconnect()
throws ManifoldCFException
ManifoldCFExceptionConfigParams getConfiguration()
void clearThreadContext()
void setThreadContext(IThreadContext threadContext)
threadContext - is the new thread context.
void outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.util.ArrayList tabsArray)
throws ManifoldCFException,
java.io.IOException
threadContext - 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
void outputConfigurationBody(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters,
java.lang.String tabName)
throws ManifoldCFException,
java.io.IOException
java.lang.String processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
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.parameters - are the configuration parameters, as they currently exist, for this connection being configured.
ManifoldCFException
void viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
ConfigParams parameters)
throws ManifoldCFException,
java.io.IOException
threadContext - 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 | ||||||||