/** * @return true if this Resource is an alias to another real Resource */ public boolean isAlias() { return getAlias()!=null; }
/** * @return true if this Resource is an alias to another real Resource */ public boolean isAlias() { return getAlias()!=null; }
@Override public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
@Override public boolean check(String path, Resource resource) { int dot = path.lastIndexOf('.'); if (dot<0) return false; String suffix=path.substring(dot); return resource.getAlias().toString().endsWith(suffix); } }
public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
@Override public boolean check(String path, Resource resource) { int dot = path.lastIndexOf('.'); if (dot<0) return false; String suffix=path.substring(dot); return resource.getAlias().toString().endsWith(suffix); } }
@Override public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
@Override public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
@Override public boolean check(String path, Resource resource) { int slash = path.lastIndexOf('/'); if (slash<0) return false; String suffix=path.substring(slash); return resource.getAlias().toString().endsWith(suffix); } }
public boolean check(String path, Resource resource) { int dot = path.lastIndexOf('.'); if (dot<0) return false; String suffix=path.substring(dot); return resource.getAlias().toString().endsWith(suffix); } }
public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURL().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); else return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); } }
public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURL().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); else return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); } }
public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURL().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); else return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); } }
public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURL().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); else return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); } }
@Override public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURI().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); if (a.length()<r.length()) return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); return a.equals(r); } }
@Override public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a=resource.getAlias().toString(); String r=resource.getURL().toString(); if (a.length()>r.length()) return a.startsWith(r) && a.length()==r.length()+1 && a.endsWith("/"); if (a.length()<r.length()) return r.startsWith(a) && r.length()==a.length()+1 && r.endsWith("/"); return a.equals(r); } }
@Override public boolean check(String path, Resource resource) { if (resource.exists()) return false; String a = resource.getAlias().toString(); String r = resource.getURI().toString(); if (a.length() > r.length()) return a.startsWith(r) && a.length() == r.length() + 1 && a.endsWith("/"); if (a.length() < r.length()) return r.startsWith(a) && r.length() == a.length() + 1 && r.endsWith("/"); return a.equals(r); } }