(String hostport)
| 161 | } |
| 162 | |
| 163 | public static String headersTohost(String hostport){ |
| 164 | String host = ""; |
| 165 | String[] hostports ; |
| 166 | if (hostport.contains(":")) { |
| 167 | hostports = hostport.split(":"); |
| 168 | host = hostports[0]; |
| 169 | }else{ |
| 170 | host = hostport; |
| 171 | } |
| 172 | return host; |
| 173 | } |
| 174 | |
| 175 | public static int headersToport(String hostport,Boolean usehttps){ |
| 176 | int port ; |
no outgoing calls
no test coverage detected