]>
Commit | Line | Data |
---|---|---|
8dfb76c9 MG |
1 | package ro.ieval.fonbot; |
2 | ||
3 | /* | |
4 | * Copyright © 2013 Marius Gavrilescu | |
5 | * | |
6 | * This file is part of FonBot. | |
7 | * | |
8 | * FonBot is free software: you can redistribute it and/or modify | |
9 | * it under the terms of the GNU General Public License as published by | |
10 | * the Free Software Foundation, either version 3 of the License, or | |
11 | * (at your option) any later version. | |
12 | * | |
13 | * FonBot is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with FonBot. If not, see <http://www.gnu.org/licenses/>. | |
20 | */ | |
21 | ||
22 | /** | |
23 | * POJO that represents a HTTP header | |
24 | * | |
25 | * @author Marius Gavrilescu | |
26 | */ | |
27 | final class Header{ | |
28 | /** | |
29 | * The header name | |
30 | */ | |
31 | public final String name; | |
32 | /** | |
33 | * The header value | |
34 | */ | |
35 | public final String value; | |
36 | ||
37 | /** | |
38 | * Constructs a Header from its two parts. | |
39 | * | |
40 | * @param name the name of the header | |
41 | * @param value the value of the header | |
42 | */ | |
43 | public Header(final String name, final String value){ | |
44 | this.name=name; | |
45 | this.value=value; | |
46 | } | |
47 | } |