/** * Process a HEAD request for the specified resource. * * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet-specified error occurs */ public void doHead(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { serveRequest(request, response); }
/** * Initialize this servlet. */ public synchronized void init() throws ServletException { // Ensure that our ContainerServlet properties have been set if ((wrapper == null) || (context == null)) throw new UnavailableException (rb.getString(LogFacade.SET_WRAPPER_NOT_CALLED_EXCEPTION)); // Set our properties from the initialization parameters String value = null; try { value = getServletConfig().getInitParameter("debug"); debug = Integer.parseInt(value); } catch (Throwable t) { ; } if (debug >= 1) log("init: Associated with Context '" + context.getPath() + "'"); }
log("included='" + included + "', requestURI='" + inRequestURI + "'"); log(" servletPath='" + inServletPath + "', pathInfo='" + inPathInfo + "'"); log("Invalid pathInfo 'null'"); String msg = MessageFormat.format(rb.getString(LogFacade.INVALID_PATH_EXCEPTION), inRequestURI); log(msg); response.sendError(HttpServletResponse.SC_NOT_FOUND); log("Processing servlet '" + servletClass + "' with path info '" + pathInfo + "'"); String name = "org.apache.catalina.INVOKER." + servletClass; log("Using wrapper for servlet '" + wrapper.getName() + "' with mapping '" + pattern + "'"); log("Creating wrapper for '" + servletClass + "' with mapping '" + pattern + "'"); try { String msg = MessageFormat.format(rb.getString(LogFacade.CANNOT_CREATE_SERVLET_WRAPPER_EXCEPTION), inRequestURI); log(msg, t); context.removeServletMapping(pattern); context.removeChild(wrapper);
/** * Process a GET request for the specified resource. * * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet-specified error occurs */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { serveRequest(request, response); }
/** * Process a POST request for the specified resource. * * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet-specified error occurs */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { serveRequest(request, response); }