/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
service(baseUri, requestUri, request, response);
servlet.setEffectiveUser(effectiveUser); super.service(request, response);
service(baseUri, requestUri, request, response);
/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
/** * Dispatches client requests to the protected * {@code service} method. There's no need to * override this method. * * @param req the {@link HttpServletRequest} object that * contains the request the client made of * the servlet * @param res the {@link HttpServletResponse} object that * contains the response the servlet returns * to the client * @throws IOException if an input or output error occurs * while the servlet is handling the * HTTP request * @throws ServletException if the HTTP request cannot * be handled * @see javax.servlet.Servlet#service */ @Override public void service(final ServletRequest req, final ServletResponse res) throws ServletException, IOException { final HttpServletRequest request; final HttpServletResponse response; if (!(req instanceof HttpServletRequest && res instanceof HttpServletResponse)) { throw new ServletException("non-HTTP request or response"); } request = (HttpServletRequest) req; response = (HttpServletResponse) res; service(request, response); }
@Override @Suspendable public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { jerseySC.service(req, res); }
@Sessional @Override public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { super.service(req, res); }
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { req = new HttpServletRequestWrapper(req); ClassLoader old = Thread.currentThread().getContextClassLoader(); WorkContext workContext = WorkContextCache.getAndResetThreadWorkContext(); try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); workContext.setHeader("fabric3.httpRequest", req); workContext.setHeader("fabric3.httpResponse", res); servlet.service(req, res); } catch (ServletException se) { se.printStackTrace(); throw se; } catch (IOException ie) { ie.printStackTrace(); throw ie; } catch (Throwable t) { t.printStackTrace(); throw new ServletException(t); } finally { Thread.currentThread().setContextClassLoader(old); workContext.reset(); } }
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { req = new HttpServletRequestWrapper(req); ClassLoader old = Thread.currentThread().getContextClassLoader(); WorkContext workContext = WorkContextCache.getAndResetThreadWorkContext(); try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); workContext.setHeader("fabric3.httpRequest", req); workContext.setHeader("fabric3.httpResponse", res); if (servlet == null || servlet.getWebComponent() == null) { // not yet initialized res.setStatus(404); return; } servlet.service(req, res); } catch (ServletException | IOException se) { se.printStackTrace(); throw se; } catch (Throwable t) { t.printStackTrace(); throw new ServletException(t); } finally { Thread.currentThread().setContextClassLoader(old); workContext.reset(); } }
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { req = new HttpServletRequestWrapper(req); ClassLoader old = Thread.currentThread().getContextClassLoader(); WorkContext workContext = WorkContextCache.getAndResetThreadWorkContext(); try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); workContext.setHeader("fabric3.httpRequest", req); workContext.setHeader("fabric3.httpResponse", res); if (servlet == null || servlet.getWebComponent() == null) { // not yet initialized res.setStatus(404); return; } servlet.service(req, res); } catch (ServletException | IOException se) { se.printStackTrace(); throw se; } catch (Throwable t) { t.printStackTrace(); throw new ServletException(t); } finally { Thread.currentThread().setContextClassLoader(old); workContext.reset(); } }
servlet.setEffectiveUser(effectiveUser); super.service(request, response);
servlet.setEffectiveUser(effectiveUser); super.service(request, response);
service(baseUri, requestUri, request, response);
service(baseUri, requestUri, request, response);
service(baseUri, requestUri, request, response);
service(baseUri, requestUri, request, response);