/** * Creates a new route for the given URI pattern and target. * * @param uriPattern * The URI pattern that must match the relative part of the * resource URI. * @param target * The target Restlet to attach. * @return The created route. */ protected Route createRoute(String uriPattern, Restlet target) { final Route result = new Route(this, uriPattern, target); result.getTemplate().setMatchingMode(getDefaultMatchingMode()); result.setMatchQuery(this.defaultMatchQuery); return result; }
if (item != null) { getInternalRouter().setDefaultMatchingMode( getInt(item, getInternalRouter().getDefaultMatchingMode()));