Config.php
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
namespace AliyunMNS;
class Config
{
//private $maxAttempts;
private $proxy; // http://username:password@192.168.16.1:10
private $connectTimeout;
private $requestTimeout;
private $expectContinue;
public function __construct()
{
// $this->maxAttempts = 3;
$this->proxy = NULL;
$this->requestTimeout = 35; // 35 seconds
$this->connectTimeout = 3; // 3 seconds
$this->expectContinue = false;
}
/*
public function getMaxAttempts()
{
return $this->maxAttempts;
}
public function setMaxAttempts($maxAttempts)
{
$this->maxAttempts = $maxAttempts;
}
*/
public function getProxy()
{
return $this->proxy;
}
public function setProxy($proxy)
{
$this->proxy = $proxy;
}
public function getRequestTimeout()
{
return $this->requestTimeout;
}
public function setRequestTimeout($requestTimeout)
{
$this->requestTimeout = $requestTimeout;
}
public function setConnectTimeout($connectTimeout)
{
$this->connectTimeout = $connectTimeout;
}
public function getConnectTimeout()
{
return $this->connectTimeout;
}
public function getExpectContinue()
{
return $this->expectContinue;
}
public function setExpectContinue($expectContinue)
{
$this->expectContinue = $expectContinue;
}
}
?>