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

Method init

java/org/apache/catalina/ssi/SSIServlet.java:73–100  ·  view source on GitHub ↗

Initialize the SSI servlet with configuration parameters. @throws ServletException if initialization fails

()

Source from the content-addressed store, hash-verified

71 * @throws ServletException if initialization fails
72 */
73 @Override
74 public void init() throws ServletException {
75
76 if (getServletConfig().getInitParameter("debug") != null) {
77 debug = Integer.parseInt(getServletConfig().getInitParameter("debug"));
78 }
79
80 isVirtualWebappRelative = Boolean.parseBoolean(getServletConfig().getInitParameter("isVirtualWebappRelative"));
81
82 if (getServletConfig().getInitParameter("expires") != null) {
83 expires = Long.valueOf(getServletConfig().getInitParameter("expires"));
84 }
85
86 buffered = Boolean.parseBoolean(getServletConfig().getInitParameter("buffered"));
87
88 inputEncoding = getServletConfig().getInitParameter("inputEncoding");
89
90 if (getServletConfig().getInitParameter("outputEncoding") != null) {
91 outputEncoding = getServletConfig().getInitParameter("outputEncoding");
92 }
93
94 allowExec = Boolean.parseBoolean(getServletConfig().getInitParameter("allowExec"));
95
96 if (debug > 0) {
97 log("SSIServlet.init() SSI invoker started with 'debug'=" + debug);
98 }
99
100 }
101
102
103 /**

Callers

nothing calls this directly

Calls 6

parseBooleanMethod · 0.80
getInitParameterMethod · 0.65
getServletConfigMethod · 0.65
logMethod · 0.65
parseIntMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected