Produced by Araxis Merge on 11/20/2017 2:15:52 PM GMT Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\Merge Test Files\8.0.47\java\org\apache\catalina\authenticator | SavedRequest.java | Fri Sep 29 16:53:28 2017 UTC |
2 | C:\Merge Test Files\8.5.23\java\org\apache\catalina\authenticator | SavedRequest.java | Thu Sep 28 11:32:16 2017 UTC |
3 | C:\Merge Test Files\9.0.1\java\org\apache\catalina\authenticator | SavedRequest.java | Wed Sep 27 18:33:40 2017 UTC |
Note: Merge considers the second file to be the common ancestor of the others. |
Description | Between Files 1 and 2 |
Between Files 2 and 3 |
Relative to Common Ancestor |
|||
---|---|---|---|---|---|---|
Text Blocks | Lines | Text Blocks | Lines | Text Blocks | Lines | |
Unchanged | 1 | 372 | 22 | 336 | ||
Changed | 0 | 0 | 17 | 34 | 17 | 34 |
Inserted | 0 | 0 | 3 | 3 | 3 | 3 |
Removed | 0 | 0 | 1 | 1 | 1 | 1 |
Note: An automatic merge would leave 0 conflict(s). |
Whitespace | Consecutive whitespace is treated as a single space |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /* | 1 | /* | 1 | /* | |||||
2 | * License d to the A pache Soft ware Found ation (ASF ) under on e or more | 2 | * License d to the A pache Soft ware Found ation (ASF ) under on e or more | 2 | * License d to the A pache Soft ware Found ation (ASF ) under on e or more | |||||
3 | * contrib utor licen se agreeme nts. See the NOTICE file dist ributed wi th | 3 | * contrib utor licen se agreeme nts. See the NOTICE file dist ributed wi th | 3 | * contrib utor licen se agreeme nts. See the NOTICE file dist ributed wi th | |||||
4 | * this wo rk for add itional in formation regarding copyright ownership. | 4 | * this wo rk for add itional in formation regarding copyright ownership. | 4 | * this wo rk for add itional in formation regarding copyright ownership. | |||||
5 | * The ASF licenses this file to You und er the Apa che Licens e, Version 2.0 | 5 | * The ASF licenses this file to You und er the Apa che Licens e, Version 2.0 | 5 | * The ASF licenses this file to You und er the Apa che Licens e, Version 2.0 | |||||
6 | * (the "L icense"); you may no t use this file exce pt in comp liance wit h | 6 | * (the "L icense"); you may no t use this file exce pt in comp liance wit h | 6 | * (the "L icense"); you may no t use this file exce pt in comp liance wit h | |||||
7 | * the Lic ense. You may obtai n a copy o f the Lice nse at | 7 | * the Lic ense. You may obtai n a copy o f the Lice nse at | 7 | * the Lic ense. You may obtai n a copy o f the Lice nse at | |||||
8 | * | 8 | * | 8 | * | |||||
9 | * ht tp://www.a pache.org/ licenses/L ICENSE-2.0 | 9 | * ht tp://www.a pache.org/ licenses/L ICENSE-2.0 | 9 | * ht tp://www.a pache.org/ licenses/L ICENSE-2.0 | |||||
10 | * | 10 | * | 10 | * | |||||
11 | * Unless required b y applicab le law or agreed to in writing , software | 11 | * Unless required b y applicab le law or agreed to in writing , software | 11 | * Unless required b y applicab le law or agreed to in writing , software | |||||
12 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | 12 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | 12 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | |||||
13 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | 13 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | 13 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | |||||
14 | * See the License f or the spe cific lang uage gover ning permi ssions and | 14 | * See the License f or the spe cific lang uage gover ning permi ssions and | 14 | * See the License f or the spe cific lang uage gover ning permi ssions and | |||||
15 | * limitat ions under the Licen se. | 15 | * limitat ions under the Licen se. | 15 | * limitat ions under the Licen se. | |||||
16 | */ | 16 | */ | 16 | */ | |||||
17 | 17 | 17 | ||||||||
18 | 18 | 18 | ||||||||
19 | package or g.apache.c atalina.au thenticato r; | 19 | package or g.apache.c atalina.au thenticato r; | 19 | package or g.apache.c atalina.au thenticato r; | |||||
20 | 20 | 20 | ||||||||
21 | 21 | 21 | ||||||||
22 | import jav a.util.Arr ayList; | 22 | import jav a.util.Arr ayList; | 22 | import jav a.util.Arr ayList; | |||||
23 | import jav a.util.Col lections; | |||||||||
23 | import jav a.util.Has hMap; | 23 | import jav a.util.Has hMap; | 24 | import jav a.util.Has hMap; | |||||
24 | import jav a.util.Ite rator; | 24 | import jav a.util.Ite rator; | 25 | import jav a.util.Ite rator; | |||||
26 | import jav a.util.Lis t; | |||||||||
25 | import jav a.util.Loc ale; | 25 | import jav a.util.Loc ale; | 27 | import jav a.util.Loc ale; | |||||
28 | import jav a.util.Map ; | |||||||||
26 | 26 | 29 | ||||||||
27 | import jav ax.servlet .http.Cook ie; | 27 | import jav ax.servlet .http.Cook ie; | 30 | import jav ax.servlet .http.Cook ie; | |||||
28 | 28 | 31 | ||||||||
29 | import org .apache.to mcat.util. buf.ByteCh unk; | 29 | import org .apache.to mcat.util. buf.ByteCh unk; | 32 | import org .apache.to mcat.util. buf.ByteCh unk; | |||||
30 | 30 | 33 | ||||||||
31 | 31 | 34 | ||||||||
32 | /** | 32 | /** | 35 | /** | |||||
33 | * Object that saves the criti cal inform ation from a request so that | 33 | * Object that saves the criti cal inform ation from a request so that | 36 | * Object that saves the criti cal inform ation from a request so that | |||||
34 | * form-ba sed authen tication c an reprodu ce it once the user has been | 34 | * form-ba sed authen tication c an reprodu ce it once the user has been | 37 | * form-ba sed authen tication c an reprodu ce it once the user has been | |||||
35 | * authent icated. | 35 | * authent icated. | 38 | * authent icated. | |||||
36 | * <p> | 36 | * <p> | 39 | * <p> | |||||
37 | * <b>IMPL EMENTATION NOTE</b> - It is as sumed that this obje ct is acce ssed | 37 | * <b>IMPL EMENTATION NOTE</b> - It is as sumed that this obje ct is acce ssed | 40 | * <b>IMPL EMENTATION NOTE</b> - It is as sumed that this obje ct is acce ssed | |||||
38 | * only fr om the con text of a single thr ead, so no synchroni zation aro und | 38 | * only fr om the con text of a single thr ead, so no synchroni zation aro und | 41 | * only fr om the con text of a single thr ead, so no synchroni zation aro und | |||||
39 | * interna l collecti on classes is perfor med. | 39 | * interna l collecti on classes is perfor med. | 42 | * interna l collecti on classes is perfor med. | |||||
40 | * | 40 | * | 43 | * | |||||
41 | * @author Craig R. McClanahan | 41 | * @author Craig R. McClanahan | 44 | * @author Craig R. McClanahan | |||||
42 | */ | 42 | */ | 45 | */ | |||||
43 | public fin al class S avedReques t { | 43 | public fin al class S avedReques t { | 46 | public fin al class S avedReques t { | |||||
44 | 44 | 47 | ||||||||
45 | 45 | |||||||||
46 | /** | 46 | /** | 48 | /** | |||||
47 | * The set of Co okies asso ciated wit h this Req uest. | 47 | * The set of Co okies asso ciated wit h this Req uest. | 49 | * The set of Co okies asso ciated wit h this Req uest. | |||||
48 | */ | 48 | */ | 50 | */ | |||||
49 | privat e final Ar rayList<Co okie> cook ies = new ArrayList< >(); | 49 | private fi nal Array List<Cooki e> cookies = new Arr ayList<>() ; | 51 |
private fi
nal
|
|||||
50 | 50 | 52 | ||||||||
51 | public void addC ookie(Cook ie cookie) { | 51 | public void addC ookie(Cook ie cookie) { | 53 | public void addC ookie(Cook ie cookie) { | |||||
52 | co okies.add( cookie); | 52 | co okies.add( cookie); | 54 | co okies.add( cookie); | |||||
53 | } | 53 | } | 55 | } | |||||
54 | 54 | 56 | ||||||||
55 | public Iterator< Cookie> ge tCookies() { | 55 | public Iterator< Cookie> ge tCookies() { | 57 | public Iterator< Cookie> ge tCookies() { | |||||
56 | re turn (cook ies.iterat or()); | 56 | return ( cookies.it erator() ) ; | 58 |
return
|
|||||
57 | } | 57 | } | 59 | } | |||||
58 | 58 | 60 | ||||||||
59 | 59 | 61 | ||||||||
60 | /** | 60 | /** | 62 | /** | |||||
61 | * The set of He aders asso ciated wit h this Req uest. Eac h key is a header | 61 | * The set of He aders asso ciated wit h this Req uest. Eac h key is a header | 63 | * The set of He aders asso ciated wit h this Req uest. Eac h key is a header | |||||
62 | * nam e, while t he value i s a ArrayL ist contai ning one o r more act ual | 62 | * name, wh ile the va lue is a Array List conta ining one or more ac tual | 64 |
* name, wh
ile the va
lue is a
|
|||||
63 | * val ues for th is header. The valu es are ret urned as a n Iterator when | 63 | * val ues for th is header. The valu es are ret urned as a n Iterator when | 65 | * val ues for th is header. The valu es are ret urned as a n Iterator when | |||||
64 | * you ask for t hem. | 64 | * you ask for t hem. | 66 | * you ask for t hem. | |||||
65 | */ | 65 | */ | 67 | */ | |||||
66 | privat e final Ha shMap<Stri ng,ArrayLi st<String> > headers = new Hash Map<>(); | 66 | private fi nal Hash Map<String , Array List<Strin g>> header s = new Ha shMap<>(); | 68 |
private fi
nal
|
|||||
67 | 67 | 69 | ||||||||
68 | public void addH eader(Stri ng name, S tring valu e) { | 68 | public void addH eader(Stri ng name, S tring valu e) { | 70 | public void addH eader(Stri ng name, S tring valu e) { | |||||
69 | Ar rayList<St ring> valu es = heade rs.get(nam e); | 69 | Array List<Strin g> values = headers. get(name); | 71 |
|
|||||
70 | if (values = = null) { | 70 | if (values = = null) { | 72 | if (values = = null) { | |||||
71 | values = new Array List<>(); | 71 | values = new Array List<>(); | 73 | values = new Array List<>(); | |||||
72 | headers. put(name, values); | 72 | headers. put(name, values); | 74 | headers. put(name, values); | |||||
73 | } | 73 | } | 75 | } | |||||
74 | va lues.add(v alue); | 74 | va lues.add(v alue); | 76 | va lues.add(v alue); | |||||
75 | } | 75 | } | 77 | } | |||||
76 | 76 | 78 | ||||||||
77 | public Iterator< String> ge tHeaderNam es() { | 77 | public Iterator< String> ge tHeaderNam es() { | 79 | public Iterator< String> ge tHeaderNam es() { | |||||
78 | re turn (head ers.keySet ().iterato r()); | 78 | return ( headers.ke ySet().ite rator() ) ; | 80 |
return
|
|||||
79 | } | 79 | } | 81 | } | |||||
80 | 80 | 82 | ||||||||
81 | public Iterator< String> ge tHeaderVal ues(String name) { | 81 | public Iterator< String> ge tHeaderVal ues(String name) { | 83 | public Iterator< String> ge tHeaderVal ues(String name) { | |||||
82 | Ar rayList<St ring> valu es = heade rs.get(nam e); | 82 | Array List<Strin g> values = headers. get(name); | 84 |
|
|||||
83 | if (values = = null) | 83 | if (values = = null) | 85 | if (values = = null) | |||||
84 | return ( (new Array List<Strin g>()).iter ator()); | 84 |
return
((n
e
w ArrayLis
t
<Str
i
|
86 |
return
Coll
e
c
t
|
|||||
85 | el se | 85 | el se | 87 | el se | |||||
86 | return ( values.ite rator()); | 86 | return ( values.ite rator() ) ; | 88 |
return
|
|||||
87 | } | 87 | } | 89 | } | |||||
88 | 88 | 90 | ||||||||
89 | 89 | 91 | ||||||||
90 | /** | 90 | /** | 92 | /** | |||||
91 | * The set of Lo cales asso ciated wit h this Req uest. | 91 | * The set of Lo cales asso ciated wit h this Req uest. | 93 | * The set of Lo cales asso ciated wit h this Req uest. | |||||
92 | */ | 92 | */ | 94 | */ | |||||
93 | privat e final Ar rayList<Lo cale> loca les = new ArrayList< >(); | 93 | private fi nal Array List<Local e> locales = new Arr ayList<>() ; | 95 |
private fi
nal
|
|||||
94 | 94 | 96 | ||||||||
95 | public void addL ocale(Loca le locale) { | 95 | public void addL ocale(Loca le locale) { | 97 | public void addL ocale(Loca le locale) { | |||||
96 | lo cales.add( locale); | 96 | lo cales.add( locale); | 98 | lo cales.add( locale); | |||||
97 | } | 97 | } | 99 | } | |||||
98 | 98 | 100 | ||||||||
99 | public Iterator< Locale> ge tLocales() { | 99 | public Iterator< Locale> ge tLocales() { | 101 | public Iterator< Locale> ge tLocales() { | |||||
100 | re turn (loca les.iterat or()); | 100 | return ( locales.it erator() ) ; | 102 |
return
|
|||||
101 | } | 101 | } | 103 | } | |||||
102 | 102 | 104 | ||||||||
103 | 103 | 105 | ||||||||
104 | /** | 104 | /** | 106 | /** | |||||
105 | * The request m ethod used on this R equest. | 105 | * The request m ethod used on this R equest. | 107 | * The request m ethod used on this R equest. | |||||
106 | */ | 106 | */ | 108 | */ | |||||
107 | privat e String m ethod = nu ll; | 107 | privat e String m ethod = nu ll; | 109 | privat e String m ethod = nu ll; | |||||
108 | 108 | 110 | ||||||||
109 | public String ge tMethod() { | 109 | public String ge tMethod() { | 111 | public String ge tMethod() { | |||||
110 | re turn (this .method); | 110 | return ( this.metho d ) ; | 112 |
return
|
|||||
111 | } | 111 | } | 113 | } | |||||
112 | 112 | 114 | ||||||||
113 | public void setM ethod(Stri ng method) { | 113 | public void setM ethod(Stri ng method) { | 115 | public void setM ethod(Stri ng method) { | |||||
114 | th is.method = method; | 114 | th is.method = method; | 116 | th is.method = method; | |||||
115 | } | 115 | } | 117 | } | |||||
116 | 116 | 118 | ||||||||
117 | 117 | 119 | ||||||||
118 | /** | 118 | /** | 120 | /** | |||||
119 | * The query str ing associ ated with this Reque st. | 119 | * The query str ing associ ated with this Reque st. | 121 | * The query str ing associ ated with this Reque st. | |||||
120 | */ | 120 | */ | 122 | */ | |||||
121 | privat e String q ueryString = null; | 121 | privat e String q ueryString = null; | 123 | privat e String q ueryString = null; | |||||
122 | 122 | 124 | ||||||||
123 | public String ge tQueryStri ng() { | 123 | public String ge tQueryStri ng() { | 125 | public String ge tQueryStri ng() { | |||||
124 | re turn (this .queryStri ng); | 124 | return ( this.query String ) ; | 126 |
return
|
|||||
125 | } | 125 | } | 127 | } | |||||
126 | 126 | 128 | ||||||||
127 | public void setQ ueryString (String qu eryString) { | 127 | public void setQ ueryString (String qu eryString) { | 129 | public void setQ ueryString (String qu eryString) { | |||||
128 | th is.querySt ring = que ryString; | 128 | th is.querySt ring = que ryString; | 130 | th is.querySt ring = que ryString; | |||||
129 | } | 129 | } | 131 | } | |||||
130 | 130 | 132 | ||||||||
131 | 131 | 133 | ||||||||
132 | /** | 132 | /** | 134 | /** | |||||
133 | * The request U RI associa ted with t his Reques t. | 133 | * The request U RI associa ted with t his Reques t. | 135 | * The request U RI associa ted with t his Reques t. | |||||
134 | */ | 134 | */ | 136 | */ | |||||
135 | privat e String r equestURI = null; | 135 | privat e String r equestURI = null; | 137 | privat e String r equestURI = null; | |||||
136 | 136 | 138 | ||||||||
137 | public String ge tRequestUR I() { | 137 | public String ge tRequestUR I() { | 139 | public String ge tRequestUR I() { | |||||
138 | re turn (this .requestUR I); | 138 | return ( this.reque stURI ) ; | 140 |
return
|
|||||
139 | } | 139 | } | 141 | } | |||||
140 | 140 | 142 | ||||||||
141 | public void setR equestURI( String req uestURI) { | 141 | public void setR equestURI( String req uestURI) { | 143 | public void setR equestURI( String req uestURI) { | |||||
142 | th is.request URI = requ estURI; | 142 | th is.request URI = requ estURI; | 144 | th is.request URI = requ estURI; | |||||
143 | } | 143 | } | 145 | } | |||||
144 | 144 | 146 | ||||||||
145 | 145 | 147 | ||||||||
146 | /** | 146 | /** | 148 | /** | |||||
147 | * The decode re quest URI associated with this Request. Path param eters are | 147 | * The decode re quest URI associated with this Request. Path param eters are | 149 | * The decode re quest URI associated with this Request. Path param eters are | |||||
148 | * als o excluded | 148 | * als o excluded | 150 | * als o excluded | |||||
149 | */ | 149 | */ | 151 | */ | |||||
150 | privat e String d ecodedRequ estURI = n ull; | 150 | privat e String d ecodedRequ estURI = n ull; | 152 | privat e String d ecodedRequ estURI = n ull; | |||||
151 | 151 | 153 | ||||||||
152 | public String ge tDecodedRe questURI() { | 152 | public String ge tDecodedRe questURI() { | 154 | public String ge tDecodedRe questURI() { | |||||
153 | re turn (this .decodedRe questURI); | 153 | return ( this.decod edRequestU RI ) ; | 155 |
return
|
|||||
154 | } | 154 | } | 156 | } | |||||
155 | 155 | 157 | ||||||||
156 | public void setD ecodedRequ estURI(Str ing decode dRequestUR I) { | 156 | public void setD ecodedRequ estURI(Str ing decode dRequestUR I) { | 158 | public void setD ecodedRequ estURI(Str ing decode dRequestUR I) { | |||||
157 | th is.decoded RequestURI = decoded RequestURI ; | 157 | th is.decoded RequestURI = decoded RequestURI ; | 159 | th is.decoded RequestURI = decoded RequestURI ; | |||||
158 | } | 158 | } | 160 | } | |||||
159 | 159 | 161 | ||||||||
160 | 160 | 162 | ||||||||
161 | /** | 161 | /** | 163 | /** | |||||
162 | * The body of t his reques t. | 162 | * The body of t his reques t. | 164 | * The body of t his reques t. | |||||
163 | */ | 163 | */ | 165 | */ | |||||
164 | privat e ByteChun k body = n ull; | 164 | privat e ByteChun k body = n ull; | 166 | privat e ByteChun k body = n ull; | |||||
165 | 165 | 167 | ||||||||
166 | public ByteChunk getBody() { | 166 | public ByteChunk getBody() { | 168 | public ByteChunk getBody() { | |||||
167 | re turn (this .body); | 167 | return ( this.body ) ; | 169 |
return
|
|||||
168 | } | 168 | } | 170 | } | |||||
169 | 169 | 171 | ||||||||
170 | public void setB ody(ByteCh unk body) { | 170 | public void setB ody(ByteCh unk body) { | 172 | public void setB ody(ByteCh unk body) { | |||||
171 | th is.body = body; | 171 | th is.body = body; | 173 | th is.body = body; | |||||
172 | } | 172 | } | 174 | } | |||||
173 | 173 | 175 | ||||||||
174 | /** | 174 | /** | 176 | /** | |||||
175 | * The content t ype of the request, used if th is is a PO ST. | 175 | * The content t ype of the request, used if th is is a PO ST. | 177 | * The content t ype of the request, used if th is is a PO ST. | |||||
176 | */ | 176 | */ | 178 | */ | |||||
177 | privat e String c ontentType = null; | 177 | privat e String c ontentType = null; | 179 | privat e String c ontentType = null; | |||||
178 | 178 | 180 | ||||||||
179 | public String ge tContentTy pe() { | 179 | public String ge tContentTy pe() { | 181 | public String ge tContentTy pe() { | |||||
180 | re turn (this .contentTy pe); | 180 | return ( this.conte ntType ) ; | 182 |
return
|
|||||
181 | } | 181 | } | 183 | } | |||||
182 | 182 | 184 | ||||||||
183 | public void setC ontentType (String co ntentType) { | 183 | public void setC ontentType (String co ntentType) { | 185 | public void setC ontentType (String co ntentType) { | |||||
184 | th is.content Type = con tentType; | 184 | th is.content Type = con tentType; | 186 | th is.content Type = con tentType; | |||||
185 | } | 185 | } | 187 | } | |||||
186 | } | 186 | } | 188 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2017 Araxis Ltd (www.araxis.com). All rights reserved.