test_class.file: sdk/dslink/src/test/java/org/dsa/iot/dslink/util/URLInfoTest.java
test_class.identifier: URLInfoTest
test_case.body: @Test
      public void portTest() {
          int port = URLInfo.getDefaultPort("ws");
          Assert.assertEquals(80, port);
  
          port = URLInfo.getDefaultPort("wss");
          Assert.assertEquals(443, port);
  
          port = URLInfo.getDefaultPort("http");
          Assert.assertEquals(80, port);
  
          port = URLInfo.getDefaultPort("https");
          Assert.assertEquals(443, port);
  
          port = URLInfo.getDefaultPort("unknown");
          Assert.assertEquals(-1, port);
      }
test_case.class_method_signature: URLInfoTest.portTest()
test_case.full_signature: @Test public void portTest()
test_case.identifier: portTest
test_case.invocations: getDefaultPort assertEquals getDefaultPort assertEquals getDefaultPort assertEquals getDefaultPort assertEquals getDefaultPort assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void portTest()
focal_class.declarator: protocol
focal_class.modifier: public final
focal_class.original_string: public final String protocol;
focal_class.type: String
focal_class.var_name: protocol
focal_class.declarator: host
focal_class.modifier: public final
focal_class.original_string: public final String host;
focal_class.type: String
focal_class.var_name: host
focal_class.declarator: port
focal_class.modifier: public final
focal_class.original_string: public final int port;
focal_class.type: int
focal_class.var_name: port
focal_class.declarator: path
focal_class.modifier: public final
focal_class.original_string: public final String path;
focal_class.type: String
focal_class.var_name: path
focal_class.declarator: secure
focal_class.modifier: public final
focal_class.original_string: public final boolean secure;
focal_class.type: boolean
focal_class.var_name: secure
focal_class.declarator: trustAllCertificates = true
focal_class.modifier: private
focal_class.original_string: private boolean trustAllCertificates = true;
focal_class.type: boolean
focal_class.var_name: trustAllCertificates
focal_class.file: sdk/dslink/src/main/java/org/dsa/iot/dslink/util/URLInfo.java
focal_class.identifier: URLInfo
focal_class.class_method_signature: URLInfo.URLInfo(String protocol, String host,
                     int port, String path, boolean secure)
focal_class.full_signature: public  URLInfo(String protocol, String host,
                     int port, String path, boolean secure)
focal_class.identifier: URLInfo
focal_class.modifiers: public
focal_class.parameters: (String protocol, String host,
                     int port, String path, boolean secure)
focal_class.signature:  URLInfo(String protocol, String host,
                     int port, String path, boolean secure)
focal_class.class_method_signature: URLInfo.getDefaultPort(String scheme)
focal_class.full_signature: public static int getDefaultPort(String scheme)
focal_class.identifier: getDefaultPort
focal_class.modifiers: public static
focal_class.parameters: (String scheme)
focal_class.return: int
focal_class.signature: int getDefaultPort(String scheme)
focal_class.class_method_signature: URLInfo.getDefaultProtocolSecurity(String scheme)
focal_class.full_signature: public static boolean getDefaultProtocolSecurity(String scheme)
focal_class.identifier: getDefaultProtocolSecurity
focal_class.modifiers: public static
focal_class.parameters: (String scheme)
focal_class.return: boolean
focal_class.signature: boolean getDefaultProtocolSecurity(String scheme)
focal_class.class_method_signature: URLInfo.getTrustAllCertificates()
focal_class.full_signature: public boolean getTrustAllCertificates()
focal_class.identifier: getTrustAllCertificates
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean getTrustAllCertificates()
focal_class.class_method_signature: URLInfo.parse(String url)
focal_class.full_signature: public static URLInfo parse(String url)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: URLInfo
focal_class.signature: URLInfo parse(String url)
focal_class.class_method_signature: URLInfo.parse(String url, Boolean secureOverride)
focal_class.full_signature: public static URLInfo parse(String url, Boolean secureOverride)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String url, Boolean secureOverride)
focal_class.return: URLInfo
focal_class.signature: URLInfo parse(String url, Boolean secureOverride)
focal_class.class_method_signature: URLInfo.setTrustAllCertificates(boolean trust)
focal_class.full_signature: public void setTrustAllCertificates(boolean trust)
focal_class.identifier: setTrustAllCertificates
focal_class.modifiers: public
focal_class.parameters: (boolean trust)
focal_class.return: void
focal_class.signature: void setTrustAllCertificates(boolean trust)
focal_method.body: public static int getDefaultPort(String scheme) {
          if (scheme == null) {
              throw new NullPointerException("scheme");
          }
          if ("ws".equals(scheme) || "http".equals(scheme)) {
              return 80;
          } else if ("wss".equals(scheme) || "https".equals(scheme)) {
              return 443;
          }
          return -1;
      }
focal_method.class_method_signature: URLInfo.getDefaultPort(String scheme)
focal_method.full_signature: public static int getDefaultPort(String scheme)
focal_method.identifier: getDefaultPort
focal_method.invocations: equals equals equals equals
focal_method.modifiers: public static
focal_method.parameters: (String scheme)
focal_method.return: int
focal_method.signature: int getDefaultPort(String scheme)