Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/SSH.java @ 12:6aaefb22d876 tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 18:41:36 -0700 |
parents | f3b3bbd227b8 |
children | 139394237973 |
comparison
equal
deleted
inserted
replaced
11:f3b3bbd227b8 | 12:6aaefb22d876 |
---|---|
895 else { | 895 else { |
896 return String.format(Locale.US, "%s@%s:%d", username, hostname, port); | 896 return String.format(Locale.US, "%s@%s:%d", username, hostname, port); |
897 } | 897 } |
898 } | 898 } |
899 | 899 |
900 public static Uri getUri(String input) { | 900 public Uri getUri(String input) { |
901 Matcher matcher = hostmask.matcher(input); | 901 Matcher matcher = hostmask.matcher(input); |
902 | 902 |
903 if (!matcher.matches()) | 903 if (!matcher.matches()) |
904 return null; | 904 return null; |
905 | 905 |
998 @Override | 998 @Override |
999 public void setHttpproxy(String httpproxy) { | 999 public void setHttpproxy(String httpproxy) { |
1000 this.httpproxy = httpproxy; | 1000 this.httpproxy = httpproxy; |
1001 } | 1001 } |
1002 | 1002 |
1003 public static String getFormatHint(Context context) { | 1003 public String getFormatHint(Context context) { |
1004 return String.format("%s@%s:%s", | 1004 return String.format("%s@%s:%s", |
1005 context.getString(R.string.format_username), | 1005 context.getString(R.string.format_username), |
1006 context.getString(R.string.format_hostname), | 1006 context.getString(R.string.format_hostname), |
1007 context.getString(R.string.format_port)); | 1007 context.getString(R.string.format_port)); |
1008 } | 1008 } |