/** * <p>Return the Valve instance that has been distinguished as the basic * Valve for this Pipeline (if any). */ public GlassFishValve getBasic() { return (pipeline.getBasic()); }
/** * <p>Return the Valve instance that has been distinguished as the basic * Valve for this Pipeline (if any). */ public Valve getBasic() { return (pipeline.getBasic()); }
/** * <p>Return the Valve instance that has been distinguished as the basic * Valve for this Pipeline (if any). */ public Valve getBasic() { return (pipeline.getBasic()); }
/** * <p>Return the Valve instance that has been distinguished as the basic * Valve for this Pipeline (if any). */ public Valve getBasic() { return (pipeline.getBasic()); }
@Override public Authenticator getAuthenticator() { Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if (basic instanceof Authenticator) return (Authenticator) basic; for (Valve valve : pipeline.getValves()) { if (valve instanceof Authenticator) { return (Authenticator) valve; } } } return null; }
@Override public Authenticator getAuthenticator() { Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if (basic instanceof Authenticator) return (Authenticator) basic; for (Valve valve : pipeline.getValves()) { if (valve instanceof Authenticator) { return (Authenticator) valve; } } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
@Override public Authenticator getAuthenticator() { if (this instanceof Authenticator) return (Authenticator) this; Pipeline pipeline = getPipeline(); if (pipeline != null) { Valve basic = pipeline.getBasic(); if ((basic != null) && (basic instanceof Authenticator)) return (Authenticator) basic; Valve valves[] = pipeline.getValves(); for (int i = 0; i < valves.length; i++) { if (valves[i] instanceof Authenticator) return (Authenticator) valves[i]; } } return null; }
/** * Start this host. * * @exception LifecycleException if this component detects a fatal error * that prevents it from being started */ @Override public synchronized void start() throws LifecycleException { if( started ) { return; } if( ! initialized ) init(); // Set error report valve configureStandardHostValve((StandardHostValve) pipeline.getBasic()); // START SJSAS_PE 8.1 5034793 if (log.isLoggable(Level.FINE)) { log.log(Level.FINE, LogFacade.XML_VALIDATION_ENABLED); } // END SJSAS_PE 8.1 5034793 super.start(); }
Valve stdHostValve = host.getPipeline().getBasic(); if (stdHostValve instanceof StandardHostValve) { ((StandardHostValve) stdHostValve).throwable(request,
/** * 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); } }
Pipeline p = context.getParent().getPipeline(); if (p != null) { hostValve = p.getBasic();
/** * 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); }