package Ġnl . alt ind ag . client . service Ċ Ċ import Ġnl . alt ind ag . client . Client Type Ċ import Ġnl . alt ind ag . ssl . SSL Factory Ċ import Ġorg . apache . http . impl . nio . client . Http Async Clients Ċ import Ġorg . http 4 k . client . Apache 4 Async Client Ċ import Ġorg . springframework . stereotype . Service Ċ Ċ @ Service Ċ class ĠHttp 4 k Apache 4 Async HttpClient Service ( ĊĠĠĠ Ġssl Factory : ĠSSL Factory Ċ ) Ġ: ĠHttp 4 k Async Client Service ( ĊĠĠĠ ĠApache 4 Async Client ( ĊĠĠĠĠĠĠĠ Ġclient Ġ= ĠHttp Async Clients . custom () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set SSL Context ( ssl Factory . ssl Context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set SSL Hostname Verifier ( ssl Factory . hostname Verifier ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ) Ċ ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetClient Type (): ĠClient Type Ġ= ĠClient Type . HTTP 4 K _ APACHE 4 _ ASYNC _ HTTP _ CLIENT Ċ Ċ }