(String hostport,Boolean usehttps)
| 173 | } |
| 174 | |
| 175 | public static int headersToport(String hostport,Boolean usehttps){ |
| 176 | int port ; |
| 177 | String[] hostports ; |
| 178 | if (hostport.contains(":")) { |
| 179 | hostports = hostport.split(":"); |
| 180 | port = Integer.parseInt(hostports[1]); |
| 181 | }else{ |
| 182 | if (usehttps) |
| 183 | port = 443; |
| 184 | else |
| 185 | port =80; |
| 186 | } |
| 187 | return port; |
| 188 | } |
| 189 | |
| 190 | } |
no outgoing calls
no test coverage detected