public class HttpProtocolFinderThread extends Thread
computeServerProtocol(UploadPolicy, String) method.Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
HttpProtocolFinderThread(UploadPolicy uploadPolicy,
String givenServerProtocol) |
| Modifier and Type | Method and Description |
|---|---|
static void |
computeServerProtocol(UploadPolicy uploadPolicy,
String givenServerProtocol)
This static method is the entry point for this class.
|
void |
run()
The job itself.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic HttpProtocolFinderThread(UploadPolicy uploadPolicy, String givenServerProtocol)
uploadPolicy - The current upload policygivenServerProtocol - The protocol given as parameter. If valid it
will be used. If not, the serverProtocol will be computed from
the post URL (and from a HEAD request for HTTP URL).public static void computeServerProtocol(UploadPolicy uploadPolicy, String givenServerProtocol)
uploadPolicy - The current upload policygivenServerProtocol - The protocol given as parameter. If valid it
will be used. If not, the serverProtocol will be computed from
the post URL (and from a HEAD request for HTTP URL).Copyright © 2015. All rights reserved.