Class SslAcceleratorValve

  • All Implemented Interfaces:
    javax.management.MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.JmxEnabled, org.apache.catalina.Lifecycle, org.apache.catalina.Valve

    public class SslAcceleratorValve
    extends org.apache.catalina.valves.ValveBase
    To use add (or uncomment) the following line to the Tomcat/Catalina configuarion (ie in ofbiz-containers.xml under the <property name="default-server" value="engine"> element):

    <property name="ssl-accelerator-port" value="8443"/>

    Once that is done just setup a connector just like the example http-connector and have it listen on the port you set in the ssl-accelerator-port value.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle

        org.apache.catalina.Lifecycle.SingleUse
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Integer sslAcceleratorPort  
      • Fields inherited from class org.apache.catalina.valves.ValveBase

        asyncSupported, container, containerLog, next, sm
      • Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase

        mserver
      • Fields inherited from interface org.apache.catalina.Lifecycle

        AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getSslAcceleratorPort()  
      void invoke​(org.apache.catalina.connector.Request req, org.apache.catalina.connector.Response resp)  
      void setSslAcceleratorPort​(java.lang.Integer sslAcceleratorPort)  
      • Methods inherited from class org.apache.catalina.valves.ValveBase

        backgroundProcess, getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, startInternal, stopInternal, toString
      • Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase

        destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregister
      • Methods inherited from class org.apache.catalina.util.LifecycleBase

        addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sslAcceleratorPort

        protected java.lang.Integer sslAcceleratorPort
    • Constructor Detail

      • SslAcceleratorValve

        public SslAcceleratorValve()
    • Method Detail

      • setSslAcceleratorPort

        public void setSslAcceleratorPort​(java.lang.Integer sslAcceleratorPort)
      • getSslAcceleratorPort

        public java.lang.Integer getSslAcceleratorPort()
      • invoke

        public void invoke​(org.apache.catalina.connector.Request req,
                           org.apache.catalina.connector.Response resp)
                    throws java.io.IOException,
                           ServletException
        Throws:
        java.io.IOException
        ServletException