Search in sources :

Example 1 with HttpAdapterAware

use of io.crnk.client.module.HttpAdapterAware in project crnk-framework by crnk-project.

the class CrnkClient method setHttpAdapter.

public void setHttpAdapter(HttpAdapter httpAdapter) {
    this.httpAdapter = httpAdapter;
    List<Module> modules = moduleRegistry.getModules();
    for (Module module : modules) {
        if (module instanceof HttpAdapterAware) {
            ((HttpAdapterAware) module).setHttpAdapter(getHttpAdapter());
        }
    }
}
Also used : Module(io.crnk.core.module.Module) JacksonModule(io.crnk.core.engine.internal.jackson.JacksonModule) ClientModule(io.crnk.client.module.ClientModule) HttpAdapterAware(io.crnk.client.module.HttpAdapterAware)

Aggregations

ClientModule (io.crnk.client.module.ClientModule)1 HttpAdapterAware (io.crnk.client.module.HttpAdapterAware)1 JacksonModule (io.crnk.core.engine.internal.jackson.JacksonModule)1 Module (io.crnk.core.module.Module)1