Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\license\CCLookup.class
???? 3? y w w w w w w w w w !"#$ w%&' w()#* P+,-,.,/0 1 P2 345 #6789 ( (:; (< '6 = #>,?@ #AB 3C,D 1E FGHIJKL ?MNOPQ CR CS CT CUVWXYZ[V\]^_`abcVdefgh ?i jklmn 'o pqr ps `t `u `v pw x wy 9z {| ;}~ ;z w???????? w??? {?? log Lorg/apache/log4j/Logger; cc_root Ljava/lang/String; jurisdiction lcFilter Ljava/util/List; Signature $Ljava/util/List<Ljava/lang/String;>; license_doc Lorg/jdom/Document; rdfString errorMessage success Z parser Lorg/jdom/input/SAXBuilder; licenses 0Ljava/util/List<Lorg/dspace/license/CCLicense;>; licenseFields 5Ljava/util/List<Lorg/dspace/license/CCLicenseField;>; creativeCommonsService 3Lorg/dspace/license/service/CreativeCommonsService; <init> ()V Code LineNumberTable LocalVariableTable name this Lorg/dspace/license/CCLookup; configurationService *Lorg/dspace/services/ConfigurationService; jurisProp filters [Ljava/lang/String; StackMapTable??a ? getLicenseId &(Ljava/lang/String;)Ljava/lang/String; i I class_label getLicenses *(Ljava/lang/String;)Ljava/util/Collection; license Lorg/jdom/Element; liD xp_Licenses Lorg/jaxen/jdom/JDOMXPath; xp_LicenseID classUrl Ljava/net/URL; classDoc results jaxen_e Lorg/jaxen/JaxenException; jdom_e Lorg/jdom/JDOMException; io_e Ljava/io/IOException; e Ljava/lang/Exception; language LocalVariableTypeTable $Ljava/util/List<Lorg/jdom/Element;>;48??GHIJ J(Ljava/lang/String;)Ljava/util/Collection<Lorg/dspace/license/CCLicense;>; getLicenseFields <(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Collection; xp_LicenseField xp_FieldType xp_Description xp_Label xp_Enum err fieldDoc id label j cclicensefield #Lorg/dspace/license/CCLicenseField; field enumOptions@Q a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Collection<Lorg/dspace/license/CCLicenseField;>; issue 6(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)V current post_data &Ljava/io/UnsupportedEncodingException; post_url Ljava/net/MalformedURLException; stream Ljava/io/InputStream; jde licenseId answers Ljava/util/Map; lang issueUrl answer_doc keys Ljava/util/Iterator; connection Ljava/net/URLConnection; writer Ljava/io/OutputStreamWriter;??fmn?r Exceptions (Ljava/lang/String;)V request_url licenseURI getLicenseUrl ()Ljava/lang/String; xp_LicenseName text? getLicenseName getLicenseDocument ()Lorg/jdom/Document; getRdf result isSuccess ()Z xp_Success setSuccess (Z)V getErrorMessage setErrorMessage <clinit> SourceFile CCLookup.java ? ? java/util/ArrayList ? ? ? ? } ? } ? ? org/jdom/input/SAXBuilder ? ? ? ? ? ?????? ? ?????? cc.api.rooturl?? ? | } cc.license.jurisdiction ~ } cc.license.classfilter??? ???????? org/dspace/license/CCLicense ??? ? ? org/jaxen/jdom/JDOMXPath //licenses/license ? ? @id java/net/URL java/lang/StringBuilder?? /?locale=? ?????? ? org/jdom/Element?? org/jdom/Attribute? ???? ? ?? org/jaxen/JaxenException org/jdom/JDOMException java/io/IOException java/lang/Exception //field description type enum /license/ ?locale= !org/dspace/license/CCLicenseField ??? ?? ?????? /issue <answers> <locale> </locale> <license- > ???????? java/lang/String < >?? </ java/util/NoSuchElementException </license- > </answers> UTF-8??? = $java/io/UnsupportedEncodingException java/net/MalformedURLException???? java/io/OutputStreamWriter?? ??? ?? ????? z {? ?????? /details?license-uri= //result/license-uri ,An error occurred getting the license - uri. //result/license-name &An error occurred on the license name.??? 'An error occurred getting the rdf . . . //message ? There was an issue . . . org/dspace/license/CCLookup?? java/lang/Object (org/dspace/services/ConfigurationService org/jdom/Document java/util/List java/util/Map java/util/Iterator java/net/URLConnection java/lang/Throwable 0org/dspace/license/factory/LicenseServiceFactory getInstance 4()Lorg/dspace/license/factory/LicenseServiceFactory; getCreativeCommonsService 5()Lorg/dspace/license/service/CreativeCommonsService; 1org/dspace/services/factory/DSpaceServicesFactory 5()Lorg/dspace/services/factory/DSpaceServicesFactory; getConfigurationService ,()Lorg/dspace/services/ConfigurationService; getProperty getArrayProperty '(Ljava/lang/String;)[Ljava/lang/String; trim add (Ljava/lang/Object;)Z size ()I get (I)Ljava/lang/Object; equals append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString build #(Ljava/net/URL;)Lorg/jdom/Document; selectNodes $(Ljava/lang/Object;)Ljava/util/List; clear selectSingleNode &(Ljava/lang/Object;)Ljava/lang/Object; getValue contains getText ((Ljava/lang/String;Ljava/lang/String;I)V '(Ljava/lang/String;Ljava/lang/String;)V setDescription setType getEnum ()Ljava/util/Map; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; keySet ()Ljava/util/Set; java/util/Set iterator ()Ljava/util/Iterator; next ()Ljava/lang/Object; java/net/URLEncoder encode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; openConnection ()Ljava/net/URLConnection; setDoOutput getOutputStream ()Ljava/io/OutputStream; (Ljava/io/OutputStream;)V write flush getInputStream ()Ljava/io/InputStream; *(Ljava/io/InputStream;)Lorg/jdom/Document; getMessage org/apache/log4j/Logger warn (Ljava/lang/Object;)V getCause ()Ljava/lang/Throwable; 1org/dspace/license/service/CreativeCommonsService fetchLicenseRDF '(Lorg/jdom/Document;)Ljava/lang/String; getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! w y z { | } ~ } ? ? ? ? ? ? } ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?*? *? Y? ? *? *? *? *? *? Y? ? *? Y? ? *? Y? ? *? ? ? ? ? L*+? ? +? M*,? ,? ? +? N-? 1-:?66? 2:*? ? ? W???? ? R D 2 4 5 6 7 # 9 . : 9 ; D = N F U H a J j K x M ? N ? O ? P ? O ? S ? 4 ? ? } ? ? ? U _ ? ? j J ? } ? 3 ? ? ? F ? s ? ? ? ?? ? ? ? ? ?? ? ? ? ? ? ? "