Class TomcatConnector


  • public class TomcatConnector
    extends java.lang.Object
    Model object to contain a connector, socket address, and connection properties for a Tomcat connection.
    Author:
    Paul Gregoire
    • Constructor Detail

      • TomcatConnector

        public TomcatConnector()
    • Method Detail

      • init

        public void init()
      • getConnector

        public org.apache.catalina.connector.Connector getConnector()
        Returns:
        the connector
      • setConnectionProperties

        public void setConnectionProperties​(java.util.Map<java.lang.String,​java.lang.String> props)
        Set connection properties for the connector.
        Parameters:
        props - connection properties to set
      • getConnectionProperties

        public java.util.Map<java.lang.String,​java.lang.String> getConnectionProperties()
        Returns:
        the connectionProperties
      • setProtocol

        public void setProtocol​(java.lang.String protocol)
        Parameters:
        protocol - the protocol to set
      • setUseIPVHosts

        public void setUseIPVHosts​(boolean useIPVHosts)
        Parameters:
        useIPVHosts - the useIPVHosts to set
      • setURIEncoding

        public void setURIEncoding​(java.lang.String uRIEncoding)
        Parameters:
        uRIEncoding - the uRIEncoding to set
      • setAddress

        public void setAddress​(java.lang.String addressAndPort)
        The address and port to which we will bind the connector. If the port is not supplied the default of 5080 will be used. The address and port are to be separated by a colon ':'.
        Parameters:
        addressAndPort -
      • getAddress

        public java.lang.String getAddress()
        Returns:
        the socket address as string
      • getSocketAddress

        public java.net.InetSocketAddress getSocketAddress()
        Returns:
        the socket address
      • setRedirectPort

        public void setRedirectPort​(int redirectPort)
        Parameters:
        redirectPort - the redirectPort to set
      • isSecure

        public boolean isSecure()
        Returns:
        the secure
      • setSecure

        public void setSecure​(boolean secure)
        Parameters:
        secure - the secure to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object