MCPcopy Index your code
hub / github.com/apache/tomcat / map

Method map

java/org/apache/catalina/mapper/Mapper.java:688–701  ·  view source on GitHub ↗

Map the specified host name and URI, mutating the given mapping data. @param host Virtual host name @param uri URI @param version The version, if any, included in the request to be mapped @param mappingData This structure will contain the result of the mapping operation @throws

(MessageBytes host, MessageBytes uri, String version, MappingData mappingData)

Source from the content-addressed store, hash-verified

686 * @throws IOException if the buffers are too small to hold the results of the mapping.
687 */
688 public void map(MessageBytes host, MessageBytes uri, String version, MappingData mappingData) throws IOException {
689
690 if (host.isNull()) {
691 String defaultHostName = this.defaultHostName;
692 if (defaultHostName == null) {
693 return;
694 }
695 host.setChars(MessageBytes.EMPTY_CHAR_ARRAY, 0, 0);
696 host.getCharChunk().append(defaultHostName);
697 }
698 host.toChars();
699 uri.toChars();
700 internalMap(host.getCharChunk(), uri.getCharChunk(), version, mappingData);
701 }
702
703
704 /**

Callers 5

testCompareIgnoreCaseMethod · 0.95
processSendfileMethod · 0.45
getContextMethod · 0.45
getRequestDispatcherMethod · 0.45
postParseRequestMethod · 0.45

Calls 9

internalMapMethod · 0.95
internalMapWrapperMethod · 0.95
getCharChunkMethod · 0.80
toCharsMethod · 0.80
isNullMethod · 0.65
getMethod · 0.65
setCharsMethod · 0.45
appendMethod · 0.45
setLimitMethod · 0.45

Tested by 1

testCompareIgnoreCaseMethod · 0.76