Package play.libs.ws.ahc
Interface AhcWSComponents
-
- All Superinterfaces:
AkkaComponents
,ConfigurationComponents
,WSClientComponents
public interface AhcWSComponents extends WSClientComponents, ConfigurationComponents, AkkaComponents
AsyncHttpClient WS implementation components.Usage:
public class MyComponents extends BuiltInComponentsFromContext implements AhcWSComponents { public MyComponents(ApplicationLoader.Context context) { super(context); } // some service class that depends on WSClient public SomeService someService() { // wsClient is provided by AhcWSComponents return new SomeService(wsClient()); } // other methods }
- See Also:
BuiltInComponents
,WSClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ApplicationLifecycle
applicationLifecycle()
default play.shaded.ahc.org.asynchttpclient.AsyncHttpClient
asyncHttpClient()
Environment
environment()
default play.libs.ws.StandaloneWSClient
standaloneWSClient()
default WSClient
wsClient()
-
Methods inherited from interface play.components.AkkaComponents
actorSystem, coordinatedShutdown, executionContext, materializer
-
Methods inherited from interface play.components.ConfigurationComponents
config, configuration
-
-
-
-
Method Detail
-
environment
Environment environment()
-
applicationLifecycle
ApplicationLifecycle applicationLifecycle()
-
wsClient
default WSClient wsClient()
- Specified by:
wsClient
in interfaceWSClientComponents
-
standaloneWSClient
default play.libs.ws.StandaloneWSClient standaloneWSClient()
-
asyncHttpClient
default play.shaded.ahc.org.asynchttpclient.AsyncHttpClient asyncHttpClient()
-
-