Class WikiConnector.ExecuteGetDocInfoThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.manifoldcf.crawler.connectors.wiki.WikiConnector.ExecuteGetDocInfoThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- WikiConnector
protected static class WikiConnector.ExecuteGetDocInfoThread extends java.lang.ThreadThread to execute a "get doc info" operation. This thread both executes the operation and parses the result.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringauthorprotected org.apache.http.client.HttpClientclientprotected java.lang.Stringcommentprotected java.io.FilecontentFileprotected java.lang.StringdocumentIdentifierprotected java.lang.StringerrorMessageprotected java.lang.Throwableexceptionprotected org.apache.http.client.methods.HttpRequestBaseexecuteMethodprotected java.lang.StringlastModifiedprotected booleanloginNeededprotected java.lang.StringstatusCodeprotected java.lang.Stringtitle
-
Constructor Summary
Constructors Constructor Description ExecuteGetDocInfoThread(org.apache.http.client.HttpClient client, org.apache.http.client.methods.HttpRequestBase executeMethod, java.lang.String documentIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()booleanfinishUp()java.lang.StringgetAuthor()java.lang.StringgetComment()java.io.FilegetContentFile()java.lang.StringgetErrorMessage()java.lang.StringgetLastModified()java.lang.StringgetStatusCode()java.lang.StringgetTitle()voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
client
protected org.apache.http.client.HttpClient client
-
executeMethod
protected org.apache.http.client.methods.HttpRequestBase executeMethod
-
exception
protected java.lang.Throwable exception
-
documentIdentifier
protected java.lang.String documentIdentifier
-
contentFile
protected java.io.File contentFile
-
author
protected java.lang.String author
-
title
protected java.lang.String title
-
comment
protected java.lang.String comment
-
lastModified
protected java.lang.String lastModified
-
statusCode
protected java.lang.String statusCode
-
errorMessage
protected java.lang.String errorMessage
-
loginNeeded
protected boolean loginNeeded
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
finishUp
public boolean finishUp() throws java.lang.InterruptedException, org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption, java.io.IOException, org.apache.http.HttpException- Throws:
java.lang.InterruptedExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionjava.io.IOExceptionorg.apache.http.HttpException
-
getStatusCode
public java.lang.String getStatusCode()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getContentFile
public java.io.File getContentFile()
-
getAuthor
public java.lang.String getAuthor()
-
getComment
public java.lang.String getComment()
-
getTitle
public java.lang.String getTitle()
-
getLastModified
public java.lang.String getLastModified()
-
cleanup
public void cleanup()
-
-