MCPcopy Create free account
hub / github.com/apache/tomcat / duplicate

Method duplicate

java/org/apache/tomcat/util/http/MimeHeaders.java:188–195  ·  view source on GitHub ↗

Duplicate headers from the source. Existing headers are all cleared. @param source the source headers @throws IOException if an I/O error occurs

(MimeHeaders source)

Source from the content-addressed store, hash-verified

186 * @throws IOException if an I/O error occurs
187 */
188 public void duplicate(MimeHeaders source) throws IOException {
189 recycle();
190 for (int i = 0; i < source.size(); i++) {
191 MimeHeaderField mhf = createHeader();
192 mhf.getName().duplicate(source.getName(i));
193 mhf.getValue().duplicate(source.getValue(i));
194 }
195 }
196
197
198 // -------------------- Idx access to headers ----------

Callers 5

handleQueryParametersMethod · 0.45
doReadMethod · 0.45
cloneRequestMethod · 0.45
parseChunkBodyMethod · 0.45
populateHostMethod · 0.45

Calls 7

recycleMethod · 0.95
createHeaderMethod · 0.95
getNameMethod · 0.95
getValueMethod · 0.95
getNameMethod · 0.65
getValueMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected