Commit 5ae0f6eb authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Set classifiers on workers' parameters

parent ce1953da
......@@ -10,7 +10,7 @@ import scala.io.Codec
*
* @author Szabolcs Gyurko
*/
abstract class AbstractWorker(val downloadJob: DownloadJob, val sget2: SGet2) extends Worker {
abstract class AbstractWorker(protected val downloadJob: DownloadJob, protected val sget2: SGet2) extends Worker {
protected implicit val codec = Codec("ISO-8859-1")
private val threadGroup = new ThreadGroup(downloadJob.id.toString)
......
......@@ -11,7 +11,8 @@ import sget2.{AbstractWorker, AbstractWorkerThread, DownloadJob, SGet2}
* Created by GYURKS on 19/01/2015.
* @author GYURKS
*/
class FtpWorker (downloadJob: DownloadJob, sget2: SGet2) extends AbstractWorker(downloadJob, sget2) {
class FtpWorker (override protected val downloadJob: DownloadJob,
override protected val sget2: SGet2) extends AbstractWorker(downloadJob, sget2) {
/**
* FTP specific file size retrieval using the LIST method.
......
......@@ -17,7 +17,8 @@ import sget2.{AbstractWorker, AbstractWorkerThread, DownloadJob, SGet2}
* Created by GYURKS on 19/01/2015.
* @author GYURKS
*/
class HttpWorker (downloadJob: DownloadJob, sget2: SGet2) extends AbstractWorker(downloadJob, sget2) {
class HttpWorker (override protected val downloadJob: DownloadJob,
override protected val sget2: SGet2) extends AbstractWorker(downloadJob, sget2) {
val sslConnectionSocketFactory = new SSLConnectionSocketFactory(SSLContexts.custom()
.loadTrustMaterial(null, new TrustStrategy{
override def isTrusted(chain: Array[X509Certificate], authType: String): Boolean = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment