Initialize the SSI servlet with configuration parameters. @throws ServletException if initialization fails
()
| 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 | /** |
nothing calls this directly
no test coverage detected