/** * Construct. * * @param mountPath * the mount path */ public AbstractRequestTargetUrlCodingStrategy(final String mountPath) { if (mountPath == null) { throw new IllegalArgumentException("Mount path cannot be null or empty"); } this.mountPath = initMountPath(mountPath); if (this.mountPath.startsWith("resources/") || this.mountPath.equals("resources")) { throw new IllegalArgumentException("Mount path cannot be under '/resources'"); } }