-
Notifications
You must be signed in to change notification settings - Fork 12
/
Header.php
60 lines (41 loc) · 1.02 KB
/
Header.php
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
<?php
class Header
{
private $version = "PT1";
private $domain = "www";
private $hostName = "test.hostName";
private $ipAddress = "127.0.0.1";
private $threadGroupName = "main-thread-group";
private $threadId = "main-thread";
private $threadName = "main-thread";
private $messageId="www-0a0a69f2-407888-1234";
private $parentMessageId ="";
private $rootMessageId="";
private $sessionToken="";
public function encode() {
$header = $this->version;
$header .= "\t";
$header .= $this->domain;
$header .= "\t";
$header .= $this->hostName;
$header .= "\t";
$header .= $this->ipAddress;
$header .= "\t";
$header .= $this->threadGroupName;
$header .= "\t";
$header .= $this->threadId;
$header .= "\t";
$header .= $this->threadName;
$header .= "\t";
$header .= $this->messageId;
$header .= "\t";
$header .= $this->parentMessageId;
$header .= "\t";
$header .= $this->rootMessageId;
$header .= "\t";
$header .= $this->sessionToken;
$header .= "\t\n";
return $header;
}
}
?>