/** * @return true if this pipeline has any non basic valves, false * otherwise */ public boolean hasNonBasicValves() { return pipeline.hasNonBasicValves(); }
/** * Tomcat style invocation. */ @Override public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, ServletException { Host host = preInvoke(request, response); if (host == null) { return; } if (host.getPipeline().hasNonBasicValves() || host.hasCustomPipeline()) { // Invoke pipeline host.getPipeline().invoke(request, response); } else { // Invoke basic valve only host.getPipeline().getBasic().invoke(request, response); } }
/** * Tomcat style invocation. */ @Override public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, ServletException { Context context = preInvoke(request, response); if (context == null) { return; } // Ask this Context to process this request if (context.getPipeline().hasNonBasicValves() || context.hasCustomPipeline()) { context.getPipeline().invoke(request, response); } else { context.getPipeline().getBasic().invoke(request, response); } postInvoke(request, response); }
/** * Select the appropriate child Context to process this request, * based on the specified request URI. If no matching Context can * be found, return an appropriate HTTP error. * * @param request Request to be processed * @param response Response to be produced * * @exception IOException if an input/output error occurred * @exception ServletException if a servlet error occurred */ @Override public int invoke(Request request, Response response) throws IOException, ServletException { Context context = preInvoke(request, response); if (context == null) { return END_PIPELINE; } // Ask this Context to process this request if (context.getPipeline().hasNonBasicValves() || context.hasCustomPipeline()) { context.getPipeline().invoke(request, response); } else { context.getPipeline().getBasic().invoke(request, response); } return END_PIPELINE; }
/** * Select the appropriate child Host to process this request, * based on the requested server name. If no matching Host can * be found, return an appropriate HTTP error. * * @param request Request to be processed * @param response Response to be produced * @param valveContext Valve context used to forward to the next Valve * * @exception IOException if an input/output error occurred * @exception ServletException if a servlet error occurred */ @Override public int invoke(Request request, Response response) throws IOException, ServletException { Host host = preInvoke(request, response); if (host == null) { return END_PIPELINE; } if (host.getPipeline().hasNonBasicValves() || host.hasCustomPipeline()) { // Invoke pipeline host.getPipeline().invoke(request, response); } else { // Invoke basic valve only host.getPipeline().getBasic().invoke(request, response); } return END_PIPELINE; }
/** * Tomcat style invocation. */ @Override public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, ServletException { Wrapper wrapper = preInvoke(request, response); if (wrapper == null) { return; } /* GlassFish 1343 wrapper.getPipeline().invoke(request, response); */ // START GlassFish 1343 if (wrapper.getPipeline().hasNonBasicValves() || wrapper.hasCustomPipeline()) { wrapper.getPipeline().invoke(request, response); } else { GlassFishValve basic = wrapper.getPipeline().getBasic(); if (basic != null) { basic.invoke(request, response); basic.postInvoke(request, response); } } // END GlassFish 1343 postInvoke(request, response); }
if (wrapper.getPipeline().hasNonBasicValves() || wrapper.hasCustomPipeline()) { wrapper.getPipeline().invoke(request, response);
try { request.lockSession(); if (container.getPipeline().hasNonBasicValves() || container.hasCustomPipeline()) { container.getPipeline().invoke(request, response); return; if (host.getPipeline().hasNonBasicValves() || host.hasCustomPipeline()) { host.getPipeline().invoke(request, response);