Class AsyncHttpRequest
- java.lang.Object
-
- java.lang.Thread
-
- org.gcube.data.analysis.nlphub.legacy.AsyncHttpRequest
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
NlpAsyncNerRunner
public class AsyncHttpRequest extends Thread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected longelapsedTime-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AsyncHttpRequest()AsyncHttpRequest(String baseUrl, String method, ArrayList<NlpParameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncHttpRequestCallback()StringgetResult()voidrun()voidsetBaseUrl(String baseUrl)voidsetMethod(String method)voidsetParameters(ArrayList<NlpParameter> parameters)-
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
-
-
-
-
Constructor Detail
-
AsyncHttpRequest
public AsyncHttpRequest()
-
AsyncHttpRequest
public AsyncHttpRequest(String baseUrl, String method, ArrayList<NlpParameter> parameters)
-
-
Method Detail
-
getResult
public String getResult()
-
asyncHttpRequestCallback
public void asyncHttpRequestCallback()
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
setMethod
public void setMethod(String method)
-
setParameters
public void setParameters(ArrayList<NlpParameter> parameters)
-
-