getProtocol method

String getProtocol ([String defaultValue ])

Gets the connection protocol.

  • defaultValue (optional) the default protocol Return the connection protocol or the default value if it's not set.