Class VocabularyClient
java.lang.Object
eu.dnetlib.app.directindex.clients.VocabularyClient
- All Implemented Interfaces:
HasCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindTermLabel(String vocabulary, String code) findVocabulary(String voc) voidsetVocApiUrl(String vocApiUrl)
-
Constructor Details
-
VocabularyClient
public VocabularyClient()
-
-
Method Details
-
findVocabulary
@Cacheable("vocabularies") public Map<String,String> findVocabulary(String voc) throws DirectIndexApiException - Throws:
DirectIndexApiException
-
findTermLabel
-
clearCache
@CacheEvict(value="vocabularies", allEntries=true) public void clearCache()- Specified by:
clearCachein interfaceHasCache
-
getVocApiUrl
-
setVocApiUrl
-