def __init__(self, host=None, port=None, user=None, password=None,<EOL>ssl=False, autoInit=True):
if host is not None:<EOL><INDENT>self._host = host<EOL><DEDENT>else:<EOL><INDENT>self._host = '<STR_LIT:127.0.0.1>'<EOL><DEDENT>if port is not None:<EOL><INDENT>self._port = int(port)<EOL><DEDENT>else:<EOL><INDENT>if ssl:<EOL><INDENT>self._port = defaultTomcatSSLport<EOL><DEDENT>else:<EOL><INDENT>self._port = defaultTomcatPort<EOL><DEDENT><DEDENT>self._user = user<EOL>self._password = password<EOL>if ssl:<EOL><INDENT>self._proto = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>self._proto = '<STR_LIT:http>'<EOL><DEDENT>self._statusxml = None <EOL>if autoInit:<EOL><INDENT>self.initStats()<EOL><DEDENT>
Initialize Apache Tomcat Manager access.

        @param host:     Apache Tomcat Host. (Default: 127.0.0.1)
        @param port:     Apache Tomcat Port. (Default: 8080, SSL: 8443)
        @param user:     Apache Tomcat Manager User.
        @param password: Apache Tomcat Manager Password.
        @param ssl:      Use SSL if True. (Default: False)
        @param autoInit: If True connect to Apache Tomcat Server on instantiation.