public class WikiConnector
extends org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WikiConnector.APILoginResult |
protected class |
WikiConnector.ExecuteAPILoginThread
Thread to execute a "login" operation.
|
protected static class |
WikiConnector.ExecuteCheckThread
Thread to execute a "check" operation.
|
protected static class |
WikiConnector.ExecuteGetDocInfoThread
Thread to execute a "get doc info" operation.
|
protected static class |
WikiConnector.ExecuteGetDocURLsThread
Thread to execute a "get timestamp" operation.
|
protected static class |
WikiConnector.ExecuteGetNamespacesThread
Thread to execute a "get namespaces" operation.
|
protected static class |
WikiConnector.ExecuteGetTimestampThread
Thread to execute a "get timestamp" operation.
|
protected static class |
WikiConnector.ExecuteListPagesThread
Thread to execute a list pages operation
|
protected class |
WikiConnector.ExecuteTokenAPILoginThread
Thread to finish a "login" operation.
|
protected static class |
WikiConnector.ReturnString |
protected static class |
WikiConnector.WikiCheckAllPagesContext
Class recognizing the "api/query/allpages" context of a "check" response
|
protected static class |
WikiConnector.WikiCheckAPIContext
Class representing the "api" context of a "check" response
|
protected static class |
WikiConnector.WikiCheckPContext
Class representing the "api/query/allpages/p" context of a "check" response
|
protected static class |
WikiConnector.WikiCheckQueryContext
Class representing the "api/query" context of a "check" response
|
protected static class |
WikiConnector.WikiGetDocInfoAPIContext
Class representing the "api" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocInfoPageContext
Class representing the "api/query/pages/page" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocInfoPagesContext
Class representing the "api/query/pages" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocInfoQueryContext
Class representing the "api/query" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocInfoRevContext
Class looking for the "api/query/pages/page/revisions/rev" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocInfoRevisionsContext
Class representing the "api/query/pages/page/revisions" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetDocURLsAPIContext
Class representing the "api" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetDocURLsPageContext
Class looking for the "api/query/pages/page" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetDocURLsPagesContext
Class looking for the "api/query/pages" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetDocURLsQueryContext
Class representing the "api/query" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetNamespacesAPIContext
Class representing the "api" context of a "get namespaces" response
|
protected static class |
WikiConnector.WikiGetNamespacesNamespacesContext
Class representing the "api/query/namespaces" context of a "get namespaces" response
|
protected static class |
WikiConnector.WikiGetNamespacesNsContext
Class representing the "api/query/pages/page" context of a "get doc info" response
|
protected static class |
WikiConnector.WikiGetNamespacesQueryContext
Class representing the "api/query" context of a "get namespaces" response
|
protected static class |
WikiConnector.WikiGetTimestampAPIContext
Class representing the "api" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetTimestampPageContext
Class looking for the "api/query/pages/page" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetTimestampPagesContext
Class looking for the "api/query/pages" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetTimestampQueryContext
Class representing the "api/query" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetTimestampRevContext
Class looking for the "api/query/pages/page/revisions/rev" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiGetTimestampRevisionsContext
Class looking for the "api/query/pages/page/revisions" context of a "get timestamp" response
|
protected static class |
WikiConnector.WikiListPagesAllPagesContext
Class recognizing the "api/query/allpages" context of a "list all pages" response
|
protected static class |
WikiConnector.WikiListPagesAPIContext
Class representing the "api" context of a "list all pages" response
|
protected static class |
WikiConnector.WikiListPagesPContext
Class representing the "api/query/allpages/p" context of a "list all pages" response
|
protected static class |
WikiConnector.WikiListPagesQueryContext
Class representing the "api/query" context of a "list all pages" response
|
protected class |
WikiConnector.WikiLoginAPIContext
Class representing the "api" context of a "login" response
|
protected class |
WikiConnector.WikiLoginAPIResultAPIContext
Class representing the "api/result" context of a "login"
response
|
protected class |
WikiConnector.WikiTokenLoginAPIContext
Class representing the "api" context of a "login" response
|
protected class |
WikiConnector.WikiTokenLoginAPIResultAPIContext
Class representing the "api/result" context of a "login"
response
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.lang.String |
accessPassword |
protected java.lang.String |
accessRealm |
protected java.lang.String |
accessUser |
protected static java.lang.String[] |
activitiesList
Activities list
|
protected static java.lang.String |
ACTIVITY_FETCH
Fetch activity
|
protected java.lang.String |
baseURL
Base URL
|
protected org.apache.http.conn.HttpClientConnectionManager |
connectionManager
Connection management
|
protected boolean |
hasBeenSetup
Has setup been called?
|
protected org.apache.http.client.HttpClient |
httpClient |
protected java.lang.String |
proxyDomain |
protected java.lang.String |
proxyHost |
protected java.lang.String |
proxyPassword |
protected java.lang.String |
proxyPort |
protected java.lang.String |
proxyUsername |
protected java.lang.String |
server
Server name
|
protected java.lang.String |
serverDomain |
protected java.lang.String |
serverLogin |
protected java.lang.String |
serverPass |
protected java.lang.String |
userAgent
The user-agent for this connector instance
|
currentContext, paramsGLOBAL_DENY_TOKEN, JOBMODE_CONTINUOUS, JOBMODE_ONCEONLY, MODEL_ADD, MODEL_ADD_CHANGE, MODEL_ADD_CHANGE_DELETE, MODEL_ALL, MODEL_CHAINED_ADD, MODEL_CHAINED_ADD_CHANGE, MODEL_CHAINED_ADD_CHANGE_DELETE, MODEL_PARTIAL| Constructor and Description |
|---|
WikiConnector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addSeedDocuments(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
org.apache.manifoldcf.core.interfaces.Specification spec,
java.lang.String lastSeedVersion,
long seedTime,
int jobMode)
Queue "seed" documents.
|
java.lang.String |
check()
Check status of connection.
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
Connect.
|
void |
disconnect()
Close the connection.
|
protected java.lang.String |
executeListPagesViaThread(java.lang.String startPageTitle,
java.lang.String namespace,
java.lang.String prefix,
org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities)
Execute a listPages() operation via a thread.
|
protected static java.lang.String[] |
getAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
Grab forced acl out of document specification.
|
java.lang.String[] |
getActivitiesList()
List the activities we might report on.
|
java.lang.String[] |
getBinNames(java.lang.String documentIdentifier)
For any given document, list the bins that it is a member of.
|
protected java.lang.String |
getCheckURL()
Get a URL for a check operation.
|
protected void |
getDocInfo(java.lang.String documentIdentifier,
java.lang.String documentVersion,
java.lang.String fullURL,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String[] allowACL)
Get document info and index the document.
|
protected void |
getDocURLs(java.lang.String[] documentIdentifiers,
java.util.Map<java.lang.String,java.lang.String> urls) |
protected java.lang.String |
getGetDocInfoURL(java.lang.String documentIdentifier)
Create a URL to obtain a page's metadata and content, given the page ID.
|
protected java.lang.String |
getGetDocURLsURL(java.lang.String[] documentIdentifiers)
Create a URL to obtain multiple page's urls, given the page IDs.
|
protected java.lang.String |
getGetNamespacesURL()
Create a URL to obtain the namespaces.
|
protected java.lang.String |
getGetTimestampURL(java.lang.String[] documentIdentifiers)
Create a URL to obtain multiple page's timestamps, given the page IDs.
|
protected org.apache.http.client.methods.HttpRequestBase |
getInitializedGetMethod(java.lang.String URL)
Create and initialize an HttpRequestBase
|
protected org.apache.http.client.methods.HttpRequestBase |
getInitializedPostMethod(java.lang.String URL,
java.util.Map<java.lang.String,java.lang.String> params)
Create an initialize a post method
|
protected java.lang.String |
getListPagesURL(java.lang.String startingTitle,
java.lang.String namespace,
java.lang.String prefix)
Create a URL to obtain the next 500 pages.
|
int |
getMaxDocumentRequest()
Get the maximum number of documents to amalgamate together into one batch, for this connector.
|
protected void |
getNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Obtain the set of namespaces, as a map keyed by the canonical namespace name
where the value is the descriptive name.
|
protected void |
getSession() |
protected void |
getTimestamps(java.lang.String[] documentIdentifiers,
java.util.Map<java.lang.String,java.lang.String> versions,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities)
Obtain document versions for a set of documents.
|
protected static void |
handleException(java.lang.Throwable thr) |
protected void |
listAllPages(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
java.lang.String namespace,
java.lang.String prefix,
long startTime,
long endTime)
Perform a series of listPages() operations, so that we fully obtain the documents we're looking for even though
we're limited to 500 of them per request.
|
protected boolean |
loginToAPI()
Log in via the Wiki API.
|
void |
outputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.lang.String tabName)
Output the configuration body section.
|
void |
outputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.util.List<java.lang.String> tabsArray)
Output the configuration header section.
|
void |
outputSpecificationBody(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber,
int actualSequenceNumber,
java.lang.String tabName)
Output the specification body section.
|
void |
outputSpecificationHeader(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber,
java.util.List<java.lang.String> tabsArray)
Output the specification header section.
|
protected static boolean |
parseCheckResponse(java.io.InputStream is)
Parse check response, e.g.:
|
protected static boolean |
parseGetDocURLsResponse(java.io.InputStream is,
java.util.Map<java.lang.String,java.lang.String> urls)
This method parses a response like the following:
|
protected static boolean |
parseGetTimestampResponse(java.io.InputStream is,
java.util.Map<java.lang.String,java.lang.String> versions)
This method parses a response like the following:
|
protected static boolean |
parseListPagesResponse(java.io.InputStream is,
org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer buffer,
java.lang.String startPageTitle,
WikiConnector.ReturnString lastTitle)
Parse list output, e.g.:
|
protected void |
performCheck()
Do the check operation.
|
void |
poll()
This method is periodically called for all connectors that are connected but not
in active use.
|
java.lang.String |
processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
Process a configuration post.
|
void |
processDocuments(java.lang.String[] documentIdentifiers,
org.apache.manifoldcf.crawler.interfaces.IExistingVersions statuses,
org.apache.manifoldcf.core.interfaces.Specification spec,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
int jobMode,
boolean usesDefaultAuthority)
Process a set of documents.
|
java.lang.String |
processSpecificationPost(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber)
Process a specification post.
|
protected static java.lang.String |
readResponseAsString(org.apache.http.HttpResponse httpResponse) |
void |
viewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
View configuration.
|
void |
viewSpecification(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber)
View specification.
|
getConnectorModel, getFormCheckJavascriptMethodName, getFormPresaveCheckJavascriptMethodName, getRelationshipTypes, requestInfoclearThreadContext, deinstall, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfigurationpublic static final java.lang.String _rcsid
protected static final java.lang.String ACTIVITY_FETCH
protected static final java.lang.String[] activitiesList
protected boolean hasBeenSetup
protected java.lang.String server
protected java.lang.String baseURL
protected java.lang.String userAgent
protected java.lang.String serverLogin
protected java.lang.String serverPass
protected java.lang.String serverDomain
protected java.lang.String accessRealm
protected java.lang.String accessUser
protected java.lang.String accessPassword
protected java.lang.String proxyHost
protected java.lang.String proxyPort
protected java.lang.String proxyDomain
protected java.lang.String proxyUsername
protected java.lang.String proxyPassword
protected org.apache.http.conn.HttpClientConnectionManager connectionManager
protected org.apache.http.client.HttpClient httpClient
public java.lang.String[] getActivitiesList()
getActivitiesList in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetActivitiesList in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic java.lang.String[] getBinNames(java.lang.String documentIdentifier)
getBinNames in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetBinNames in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic void connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
connect in interface org.apache.manifoldcf.core.interfaces.IConnectorconnect in class org.apache.manifoldcf.core.connector.BaseConnectorconfigParameters - is the set of configuration parameters, which
in this case describe the target appliance, basic auth configuration, etc.protected void getSession()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected boolean loginToAPI()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic java.lang.String check()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
check in interface org.apache.manifoldcf.core.interfaces.IConnectorcheck in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void poll()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
poll in interface org.apache.manifoldcf.core.interfaces.IConnectorpoll in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void disconnect()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
disconnect in interface org.apache.manifoldcf.core.interfaces.IConnectordisconnect in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic int getMaxDocumentRequest()
getMaxDocumentRequest in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetMaxDocumentRequest in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic java.lang.String addSeedDocuments(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
org.apache.manifoldcf.core.interfaces.Specification spec,
java.lang.String lastSeedVersion,
long seedTime,
int jobMode)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
addSeedDocuments in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoraddSeedDocuments in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectoractivities - is the interface this method should use to perform whatever framework actions are desired.spec - is a document specification (that comes from the job).seedTime - is the end of the time range of documents to consider, exclusive.lastSeedVersion - is the last seeding version string for this job, or null if the job has no previous seeding version string.jobMode - is an integer describing how the job is being run, whether continuous or once-only.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic void processDocuments(java.lang.String[] documentIdentifiers,
org.apache.manifoldcf.crawler.interfaces.IExistingVersions statuses,
org.apache.manifoldcf.core.interfaces.Specification spec,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
int jobMode,
boolean usesDefaultAuthority)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
processDocuments in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorprocessDocuments in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectordocumentIdentifiers - is the set of document identifiers to process.statuses - are the currently-stored document versions for each document in the set of document identifiers
passed in above.activities - is the interface this method should use to queue up new document references
and ingest documents.jobMode - is an integer describing how the job is being run, whether continuous or once-only.usesDefaultAuthority - will be true only if the authority in use for these documents is the default one.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected static java.lang.String[] getAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
spec - is the document specification.public void outputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.util.List<java.lang.String> tabsArray)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputConfigurationHeader in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationHeader in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic void outputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.lang.String tabName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputConfigurationBody in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationBody in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.tabName - is the current tab name.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic java.lang.String processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
processConfigurationPost in interface org.apache.manifoldcf.core.interfaces.IConnectorprocessConfigurationPost in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void viewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
viewConfiguration in interface org.apache.manifoldcf.core.interfaces.IConnectorviewConfiguration in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic void outputSpecificationHeader(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber,
java.util.List<java.lang.String> tabsArray)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputSpecificationHeader in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoroutputSpecificationHeader in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - is the output to which any HTML should be sent.locale - is the locale the output is preferred to be in.ds - is the current document specification for this job.connectionSequenceNumber - is the unique number of this connection within the job.tabsArray - is an array of tab names. Add to this array any tab names that are specific to the connector.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic void outputSpecificationBody(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber,
int actualSequenceNumber,
java.lang.String tabName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputSpecificationBody in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoroutputSpecificationBody in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - is the output to which any HTML should be sent.locale - is the locale the output is preferred to be in.ds - is the current document specification for this job.connectionSequenceNumber - is the unique number of this connection within the job.actualSequenceNumber - is the connection within the job that has currently been selected.tabName - is the current tab name. (actualSequenceNumber, tabName) form a unique tuple within
the job.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic java.lang.String processSpecificationPost(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
processSpecificationPost in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorprocessSpecificationPost in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorvariableContext - contains the post data, including binary file-upload information.locale - is the locale the output is preferred to be in.ds - is the current document specification for this job.connectionSequenceNumber - is the unique number of this connection within the job.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void viewSpecification(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
viewSpecification in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorviewSpecification in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - is the output to which any HTML should be sent.locale - is the locale the output is preferred to be in.ds - is the current document specification for this job.connectionSequenceNumber - is the unique number of this connection within the job.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionprotected org.apache.http.client.methods.HttpRequestBase getInitializedGetMethod(java.lang.String URL)
throws java.io.IOException
java.io.IOExceptionprotected org.apache.http.client.methods.HttpRequestBase getInitializedPostMethod(java.lang.String URL,
java.util.Map<java.lang.String,java.lang.String> params)
throws java.io.IOException
java.io.IOExceptionprotected void performCheck()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getCheckURL()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static boolean parseCheckResponse(java.io.InputStream is)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
<api xmlns="http://www.mediawiki.org/xml/api/">
<query>
<allpages>
<p pageid="19839654" ns="0" title="Kre'fey" />
</allpages>
</query>
<query-continue>
<allpages apfrom="Krea" />
</query-continue>
</api>
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void listAllPages(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
java.lang.String namespace,
java.lang.String prefix,
long startTime,
long endTime)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String executeListPagesViaThread(java.lang.String startPageTitle,
java.lang.String namespace,
java.lang.String prefix,
org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getListPagesURL(java.lang.String startingTitle,
java.lang.String namespace,
java.lang.String prefix)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static boolean parseListPagesResponse(java.io.InputStream is,
org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer buffer,
java.lang.String startPageTitle,
WikiConnector.ReturnString lastTitle)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
<api xmlns="http://www.mediawiki.org/xml/api/">
<query>
<allpages>
<p pageid="19839654" ns="0" title="Kre'fey" />
<p pageid="30955295" ns="0" title="Kre-O" />
<p pageid="14773725" ns="0" title="Kre8tiveworkz" />
<p pageid="19219017" ns="0" title="Kre M'Baye" />
<p pageid="19319577" ns="0" title="Kre Mbaye" />
</allpages>
</query>
<query-continue>
<allpages apfrom="Krea" />
</query-continue>
</api>
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void getDocURLs(java.lang.String[] documentIdentifiers,
java.util.Map<java.lang.String,java.lang.String> urls)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getGetDocURLsURL(java.lang.String[] documentIdentifiers)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static boolean parseGetDocURLsResponse(java.io.InputStream is,
java.util.Map<java.lang.String,java.lang.String> urls)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
<api>
<query>
<pages>
<page pageid="27697087" ns="0" title="API" fullurl="..."/>
</pages>
</query>
</api>
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void getTimestamps(java.lang.String[] documentIdentifiers,
java.util.Map<java.lang.String,java.lang.String> versions,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getGetTimestampURL(java.lang.String[] documentIdentifiers)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static boolean parseGetTimestampResponse(java.io.InputStream is,
java.util.Map<java.lang.String,java.lang.String> versions)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
<api>
<query>
<pages>
<page pageid="27697087" ns="0" title="API">
<revisions>
<rev user="Graham87" timestamp="2010-06-13T08:41:17Z" />
</revisions>
</page>
</pages>
</query>
</api>
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void getNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getGetNamespacesURL()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void getDocInfo(java.lang.String documentIdentifier,
java.lang.String documentVersion,
java.lang.String fullURL,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String[] allowACL)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String getGetDocInfoURL(java.lang.String documentIdentifier)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static java.lang.String readResponseAsString(org.apache.http.HttpResponse httpResponse)
throws java.io.IOException
java.io.IOExceptionprotected static void handleException(java.lang.Throwable thr)
throws java.lang.InterruptedException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionjava.io.IOExceptionorg.apache.http.HttpException