@Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { final Handler handler = handlers.getBest(baseRequest.getRequestURI()); if (handler != null) { handler.handle(target, baseRequest, request, response); } }
@Override public V getBest(byte[] b, int offset, int len) { return _trie.getBest(b,offset,len); }
@Override public V getBest(ByteBuffer b, int offset, int len) { return _trie.getBest(b,offset,len); }
@Override public V getBest(String s, int offset, int length) { return getBest(0,s,offset,length); }
@Override public V getBest(String s) { return _trie.getBest(s); }
@Override public V getBest(String s, int offset, int length) { return _trie.getBest(s,offset,length); }
@Override public V getBest(String s) { return getBest(0,s,0,s.length()); }
V best=getBest(t,b,offset+i+1,len-i-1); if (best!=null) return best;
V better=getBest(t,s,offset,len); if (better!=null) return better;
V better=getBest(t,b,offset,len); if (better!=null) return better;
@Override public V getBest(byte[] b,int offset,int len) { return getBest(_tree[EQ],b,offset,len); }
@Override public V getBest(ByteBuffer b, int offset, int len) { return _trie.getBest(b,offset,len); }
@Override public V getBest(byte[] b,int offset,int len) { return getBest(_tree[EQ],b,offset,len); }
@Override public V getBest(String s, int offset, int length) { return getBest(0,s,offset,length); }
@Override public V getBest(byte[] b, int offset, int len) { return _trie.getBest(b,offset,len); }
@Override public V getBest(String s) { return getBest(0,s,0,s.length()); }