
com.groupbyinc.flux.repositories.uri.URLRepository.class Maven / Gradle / Ivy
???? 3 2com/groupbyinc/flux/repositories/uri/URLRepository >com/groupbyinc/flux/repositories/blobstore/BlobStoreRepository URLRepository.java TYPE Ljava/lang/String; url DEFAULT_SUPPORTED_PROTOCOLS [Ljava/lang/String; SUPPORTED_PROTOCOLS_SETTING $repositories.url.supported_protocols
ALLOWED_URLS_SETTING repositories.url.allowed_urls supportedProtocols urlWhiteList -[Lcom/groupbyinc/flux/common/util/URIPattern; environment %Lcom/groupbyinc/flux/env/Environment; blobStore 7Lcom/groupbyinc/flux/common/blobstore/url/URLBlobStore; basePath /Lcom/groupbyinc/flux/common/blobstore/BlobPath; listDirectories Z ?(Lcom/groupbyinc/flux/repositories/RepositoryName;Lcom/groupbyinc/flux/repositories/RepositorySettings;Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository;Lcom/groupbyinc/flux/env/Environment;)V java/io/IOException *Lcom/groupbyinc/flux/common/inject/Inject; /com/groupbyinc/flux/repositories/RepositoryName " getName ()Ljava/lang/String; $ %
# & ?(Ljava/lang/String;Lcom/groupbyinc/flux/repositories/RepositorySettings;Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository;)V (
) 3com/groupbyinc/flux/repositories/RepositorySettings + settings 0()Lcom/groupbyinc/flux/common/settings/Settings; - .
, / .Lcom/groupbyinc/flux/common/settings/Settings; - 1 2 repositories.url.url 4 repositories.uri.url 6 ,com/groupbyinc/flux/common/settings/Settings 8 get &(Ljava/lang/String;)Ljava/lang/String; : ;
9 < 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; : >
9 ? 4com/groupbyinc/flux/repositories/RepositoryException A name C %
# D missing url F '(Ljava/lang/String;Ljava/lang/String;)V H
B I 8com/groupbyinc/flux/index/snapshots/IndexShardRepository K #com/groupbyinc/flux/env/Environment M java/lang/String O java/net/URL Q (Ljava/lang/String;)V S
R T
V
getAsArray :(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; X Y
9 Z \ "com/groupbyinc/flux/common/Strings ^ EMPTY_ARRAY ` _ a *com/groupbyinc/flux/common/util/URIPattern c e
d T i list_directories k !repositories.uri.list_directories m java/lang/Boolean o valueOf (Z)Ljava/lang/Boolean; q r
p s getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; u v
9 w booleanValue ()Z y z
p { } checkURL (Ljava/net/URL;)Ljava/net/URL; ?
? 5com/groupbyinc/flux/common/blobstore/url/URLBlobStore ? ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/net/URL;)V ?
? ? ? -com/groupbyinc/flux/common/blobstore/BlobPath ? cleanPath 1()Lcom/groupbyinc/flux/common/blobstore/BlobPath; ? ?
? ? ? i I this 4Lcom/groupbyinc/flux/repositories/uri/URLRepository; 1Lcom/groupbyinc/flux/repositories/RepositoryName; repositorySettings 5Lcom/groupbyinc/flux/repositories/RepositorySettings; indexShardRepository :Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository; Ljava/net/URL; path
normalizedURL 2()Lcom/groupbyinc/flux/common/blobstore/BlobStore; snapshots ()Ljava/util/List; ? ?
? readSnapshotList ? ?
? repositoryName ? ? )failed to get snapshot list in repository ? <(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V ?
B ? ex Ljava/io/IOException; java/net/URISyntaxException ? getProtocol ? %
R ? java/lang/StringBuilder ? ()V ?
? ? unknown url protocol from URL [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? %
? ? equals (Ljava/lang/Object;)Z ? ?
P ? toURI ()Ljava/net/URI; ? ?
R ? match >([Lcom/groupbyinc/flux/common/util/URIPattern;Ljava/net/URI;)Z ? ?
d ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? #cannot parse the specified url [{}] ? java/lang/Object ? +com/groupbyinc/flux/common/logging/ESLogger ? warn ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? cannot parse the specified url [ ? resolveRepoURL ? ?
N ? ?The specified url [{}] doesn't start with any repository paths specified by the path.repo setting: [{}] or by repositories.url.allowed_urls setting: [{}] ? repoFiles ()[Ljava/nio/file/Path; ? ?
N ?
file url [ ? \] doesn't match any of the locations specified by path.repo or repositories.url.allowed_urls ? unsupported url protocol [ ? ] from URL [ ? Ljava/net/URISyntaxException;
normalizedUrl supportedProtocol protocol readOnly http ? https ? ftp ? file jar
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions RuntimeVisibleAnnotations Signature E()Ljava/util/List;
SourceFile !
? ?*+? ',-? *,? 0 *? 35*? 37? =? @? @:? ? BY+? EG? J?? RY? U:**? 3? W? [? ]*? 3? b? [:*?? d? f6?? *? f? dY2? hS????*? j*,? 0l*? 3n? t? x? x? |? ~*? ?:*? ?Y*? 3? ?? ?*? ?? ?? f
p ! ? ? ? ? ? ? C ? ? ? ? ? ? ? ? E ? ? ' ? ? c r ? ? ? F Q
S ' T , U : W E Y U Z c [ m \ x ] ? \ ? _ ? ` ? a ? b ? c ? d ( ? : # , L N P ? 5 R g?
! ? / *? ?? ? ? k ? / *? ?? ? ? p ? ? z !*? ~? *? ??*? ??L? BY*? ??+? ?? ? ? ! ? ? u v y z { D
? ? !+? ?M,? '? BY*? ?? ?Y? ??? ?+? ?Ķ ?? Ƿ J?*? ]N-?66? ?-2:,? ˙ ?*? f+? ϸ ә +?? <:*? ??? ?Y+S? ? ? BY*? ?? ?Y? ?? ?+? ?Ķ ?? Ƿ J?*? j+? ?:? D*? ??? ?Y+SY*? j? ?S? ? ? BY*? ?? ?Y? ?? ?+? ?? ?? Ƿ J?????H? BY*? ?? ?Y? ?? ?,? ??? ?+? ?Ķ ?? Ƿ J? O ^ b ? > d 7 ? ? ? I ? ? F ? ? ! ? ? ! ? ? J ? ? ? - ? F ? O ? ] ? _ ? b ? d ? w ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ' ? - P? g? % PB ?8? O R? ? ? z , ? ? ? ? ? ? <