mitreid-connect
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher クラス
org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher の継承関係図
Inheritance graph
org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher 連携図
Collaboration graph

公開メンバ関数

 ClientLogoFetcher ()
 
 ClientLogoFetcher (HttpClient httpClient)
 
CachedImage load (ClientDetailsEntity key) throws Exception
 

非公開変数類

HttpClient httpClient
 

詳解

著者
jricher

構築子と解体子

◆ ClientLogoFetcher() [1/2]

org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher.ClientLogoFetcher ( )
inline
89  {
90  this(HttpClientBuilder.create().useSystemProperties().build());
91  }

◆ ClientLogoFetcher() [2/2]

org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher.ClientLogoFetcher ( HttpClient  httpClient)
inline
93  {
94  this.httpClient = httpClient;
95  }
HttpClient httpClient
Definition: InMemoryClientLogoLoadingService.java:87

関数詳解

◆ load()

CachedImage org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher.load ( ClientDetailsEntity  key) throws Exception
inline
101  {
102  try {
103  HttpResponse response = httpClient.execute(new HttpGet(key.getLogoUri()));
104 
105  HttpEntity entity = response.getEntity();
106 
107  CachedImage image = new CachedImage();
108 
109  image.setContentType(entity.getContentType().getValue());
110  image.setLength(entity.getContentLength());
111  image.setData(IOUtils.toByteArray(entity.getContent()));
112 
113  return image;
114  } catch (IOException e) {
115  throw new IllegalArgumentException("Unable to load client image.");
116  }
117  }
HttpClient httpClient
Definition: InMemoryClientLogoLoadingService.java:87

メンバ詳解

◆ httpClient

HttpClient org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.ClientLogoFetcher.httpClient
private

このクラス詳解は次のファイルから抽出されました: