com.marvelution.gadgets.sonar.rest.I18nResource.class Maven / Gradle / Ivy
???? 1 ?
I J K
I L M N O P O Q R S T U V W X Y Z [ Z \ ] ^ _ ` a
b O c d
e
f g
h i j k i18nResolver ,Lcom/atlassian/sal/api/message/I18nResolver; /(Lcom/atlassian/sal/api/message/I18nResolver;)V Code LineNumberTable LocalVariableTable this 1Lcom/marvelution/gadgets/sonar/rest/I18nResource; generate ;(Ljavax/ws/rs/core/HttpHeaders;)Ljavax/ws/rs/core/Response; message Entry InnerClasses Ljava/util/Map$Entry; i$ Ljava/util/Iterator; headers Ljavax/ws/rs/core/HttpHeaders; entries Ljava/util/List; locale Ljava/util/Locale; messages Ljava/util/Map; LocalVariableTypeTable ;Ljava/util/Map$Entry; I18nEntry RLjava/util/List; 5Ljava/util/Map; RuntimeVisibleAnnotations Ljavax/ws/rs/GET; "RuntimeVisibleParameterAnnotations Ljavax/ws/rs/core/Context;
SourceFile I18nResource.java Ljavax/ws/rs/Path; value /i18n =Lcom/atlassian/plugins/rest/common/security/AnonymousAllowed; Ljavax/ws/rs/Consumes; application/json Ljavax/ws/rs/Produces; 'Lcom/sun/jersey/spi/resource/Singleton; l java/util/ArrayList m 3 n o p q r s t u java/util/Locale sonar v w x y z { | } ~ ? s ? ? java/util/Map$Entry >com/marvelution/gadgets/sonar/rest/model/I18nEntries$I18nEntry ? ? java/lang/String ? ? ? ? ? 4com/marvelution/gadgets/sonar/rest/model/I18nEntries ? ? ? ? ? ? ? /com/marvelution/gadgets/sonar/rest/I18nResource java/lang/Object ()V ENGLISH javax/ws/rs/core/HttpHeaders getAcceptableLanguages ()Ljava/util/List; java/util/List isEmpty ()Z get (I)Ljava/lang/Object; *com/atlassian/sal/api/message/I18nResolver getAllTranslationsForPrefix 5(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/Map;
java/util/Map entrySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; getKey getValue '(Ljava/lang/String;Ljava/lang/String;)V add (Ljava/lang/Object;)Z (Ljava/util/Collection;)V javax/ws/rs/core/Response ok ResponseBuilder ?(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder; )javax/ws/rs/core/Response$ResponseBuilder build ()Ljavax/ws/rs/core/Response; ! ! F
*? *+? ? " > ? @ #
$ %
&