return replyto;
}
public String extractLink() {
- Pattern link = Pattern.compile("http://[^\\s]+(?=\\s)");
+ Pattern link = Pattern.compile("https?://[^\\s]+(?=\\s)");
Matcher m = link.matcher(getMessage());
m.find();
return m.group(0);
dos.writeUTF("FAIL");
}
dos.flush();
+ } else if (type.equals("ping")) {
} else {
System.err.println("Unknown type: " + type);
}