gluu
公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.xdi.oxd.server.service.HttpService クラス
org.xdi.oxd.server.service.HttpService 連携図
Collaboration graph

公開メンバ関数

 HttpService (OxdServerConfiguration configuration)
 
HttpClient getHttpClient ()
 
ClientExecutor getClientExecutor ()
 

非公開変数類

OxdServerConfiguration configuration
 

静的非公開変数類

static final Logger LOG = LoggerFactory.getLogger(HttpService.class)
 

詳解

著者
Yuriy Zabrovarnyy

構築子と解体子

◆ HttpService()

org.xdi.oxd.server.service.HttpService.HttpService ( OxdServerConfiguration  configuration)
inline
30  {
32  }
OxdServerConfiguration configuration
Definition: HttpService.java:27

関数詳解

◆ getClientExecutor()

ClientExecutor org.xdi.oxd.server.service.HttpService.getClientExecutor ( )
inline
57  {
58  return new ApacheHttpClient4Executor(getHttpClient());
59  }
HttpClient getHttpClient()
Definition: HttpService.java:34

◆ getHttpClient()

HttpClient org.xdi.oxd.server.service.HttpService.getHttpClient ( )
inline
34  {
35  try {
36  final Boolean trustAllCerts = configuration.getTrustAllCerts();
37  if (trustAllCerts != null && trustAllCerts) {
38  LOG.trace("Created TRUST_ALL client.");
39  return CoreUtils.createHttpClientTrustAll();
40  }
41  final String keyStorePath = configuration.getKeyStorePath();
42  if (StringUtils.isNotBlank(keyStorePath)) {
43  final File keyStoreFile = new File(keyStorePath);
44  if (!keyStoreFile.exists()) {
45  LOG.error("ERROR in configuration. Key store path is invalid! Please fix key_store_path in oxd configuration");
46  } else {
47  return CoreUtils.createHttpClientWithKeyStore(keyStoreFile, configuration.getKeyStorePassword());
48  }
49  }
50  } catch (Exception e) {
51  LOG.error(e.getMessage(), e);
52  LOG.error("Failed to create http client based on oxd configuration. Created default client.");
53  }
54  return new DefaultHttpClient();
55  }
String getKeyStorePassword()
Definition: OxdServerConfiguration.java:166
static final Logger LOG
Definition: HttpService.java:25
OxdServerConfiguration configuration
Definition: HttpService.java:27
Boolean getTrustAllCerts()
Definition: OxdServerConfiguration.java:214
String getKeyStorePath()
Definition: OxdServerConfiguration.java:206

メンバ詳解

◆ configuration

OxdServerConfiguration org.xdi.oxd.server.service.HttpService.configuration
private

◆ LOG

final Logger org.xdi.oxd.server.service.HttpService.LOG = LoggerFactory.getLogger(HttpService.class)
staticprivate

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