super(endpoint); this.name = name; this.urlPattern = urlPattern;
return new TCPToolkit();
Returns the "/abc/def/ghi" portion if the URL pattern is "/abc/def/ghi/*". if (urlPattern.endsWith("/*")) { return urlPattern.substring(0, urlPattern.length() - 2); } else { return urlPattern; }
if (urlPattern.endsWith("/*")) { return urlPattern.substring(0, urlPattern.length() - 2); } else { return urlPattern; }
final TCPConnectionImpl connection = new TCPConnectionImpl(channelContext); final TCPToolkit tk = pool.take(); try { tk.handle(connection); connection.flush(); } finally { pool.recycle(tk); connection.close(); }
final TCPConnectionImpl connection = new TCPConnectionImpl(channelContext); connection.sendErrorMessage(message);