/** * Obtain and use the handler for this method. * The handler will be obtained by applying the servlet's HandlerMappings in order. * The HandlerAdapter will be obtained by querying the servlet's * installed HandlerAdapters to find the first that supports the handler class. * Both doGet() and doPost() are handled by this method. * It's up to HandlerAdapters to decide which methods are acceptable. */ protected void doService(HttpServletRequest req, HttpServletResponse resp) throws Exception { // This class has been removed from all places where it was used and replaced by the Spring // dispatcher from which it inherits. Delegate to super for now in case this ever gets called. // There is one place that depends on the tool constants above, in CommentListGenerator. // These constants should be relocated and this class purged. super.doService(req, resp); }
@Override protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { request.setAttribute(MODULE_RESOLVER_ATTRIBUTE, this.moduleResolver); super.doService(request, response); }
@Override protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { HttpServletRequest processedRequest = requestPreProcessor.preProcessRequest(request, response); if (processedRequest != null) super.doService(processedRequest, response); }
/** * {@inheritDoc} */ @Override protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { buildMvc(request); super.doService(request, response); }
@Override protected void doService(HttpServletRequest request, @Nonnull HttpServletResponse response) throws Exception { checkConfiguration(request); RemoteClientInfo remoteClientInfo = new RemoteClientInfo(); remoteClientInfo.setAddress(request.getRemoteAddr()); remoteClientInfo.setHost(request.getRemoteHost()); remoteClientInfo.setPort(request.getRemotePort()); RemoteClientInfo.set(remoteClientInfo); try { super.doService(request, response); } finally { RemoteClientInfo.clear(); } }