public boolean authenticationWasSuccessful(HttpServletRequest request, HttpServletResponse response) throws IOException { String origin = URIUtil.getName(String.valueOf(request.getRequestURL())); String code = request.getParameter("code"); String idToken = request.getParameter("id_token");
private static String getName(String uri) { String escapedName = URIUtil.getName( uri.endsWith("/") ? uri.substring(0, uri.length() - 1): uri); try { return URIUtil.decode(escapedName); } catch (URIException e) { return escapedName; } }
public String getName() { if(relPath!=null) return relPath; String escapedPath = httpUrl.getEscapedPath(); String escapedName = URIUtil.getName(escapedPath.endsWith("/") ? escapedPath.substring(0, escapedPath.length() - 1) : escapedPath); try { return URIUtil.decode(escapedName); } catch (URIException e) { return escapedName; } }
String filename = URIUtil.getName(theme); name = FilenameUtils.removeExtension(filename);
String filename = URIUtil.getName(plugin); File pluginFile = new File(plugins, filename); if(pluginFile.exists()){
String myURI = httpURL.getEscapedURI(); char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/") + URIUtil.getName(href)).toCharArray(); HttpURL childURL = httpURL instanceof HttpsURL ? new HttpsURL(childURI)