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

Method doGet

test/org/apache/coyote/http2/TestStream.java:123–135  ·  view source on GitHub ↗
(HttpServletRequest request, HttpServletResponse response)

Source from the content-addressed store, hash-verified

121 public static final String EXPECTED_SESSION_ID = "0123456789ABCDEF";
122
123 @Override
124 protected void doGet(HttpServletRequest request, HttpServletResponse response)
125 throws ServletException, IOException {
126
127 response.setContentType("text/plain");
128 response.setCharacterEncoding("UTF-8");
129
130 if (EXPECTED_SESSION_ID.equals(request.getRequestedSessionId())) {
131 response.getWriter().write("OK");
132 } else {
133 response.getWriter().write("FAIL");
134 }
135 }
136 }
137}

Callers

nothing calls this directly

Calls 6

setContentTypeMethod · 0.65
setCharacterEncodingMethod · 0.65
equalsMethod · 0.65
getRequestedSessionIdMethod · 0.65
writeMethod · 0.65
getWriterMethod · 0.65

Tested by

no test coverage detected