use of org.eclipse.che.workspace.infrastructure.kubernetes.server.secure.SecureServerExposerFactory in project che-server by eclipse-che.
the class WsMasterModule method installDefaultSecureServerExposer.
private void installDefaultSecureServerExposer(String infrastructure) {
if (KubernetesInfrastructure.NAME.equals(infrastructure)) {
MapBinder<String, SecureServerExposerFactory<KubernetesEnvironment>> secureServerExposerFactories = MapBinder.newMapBinder(binder(), new TypeLiteral<>() {
}, new TypeLiteral<>() {
});
install(new FactoryModuleBuilder().implement(new TypeLiteral<SecureServerExposer<KubernetesEnvironment>>() {
}, new TypeLiteral<PassThroughProxySecureServerExposer<KubernetesEnvironment>>() {
}).build(new TypeLiteral<PassThroughProxySecureServerExposerFactory<KubernetesEnvironment>>() {
}));
secureServerExposerFactories.addBinding("default").to(new TypeLiteral<PassThroughProxySecureServerExposerFactory<KubernetesEnvironment>>() {
});
} else {
MapBinder<String, SecureServerExposerFactory<OpenShiftEnvironment>> secureServerExposerFactories = MapBinder.newMapBinder(binder(), new TypeLiteral<>() {
}, new TypeLiteral<>() {
});
install(new FactoryModuleBuilder().implement(new TypeLiteral<SecureServerExposer<OpenShiftEnvironment>>() {
}, new TypeLiteral<PassThroughProxySecureServerExposer<OpenShiftEnvironment>>() {
}).build(new TypeLiteral<PassThroughProxySecureServerExposerFactory<OpenShiftEnvironment>>() {
}));
secureServerExposerFactories.addBinding("default").to(new TypeLiteral<PassThroughProxySecureServerExposerFactory<OpenShiftEnvironment>>() {
});
}
}
use of org.eclipse.che.workspace.infrastructure.kubernetes.server.secure.SecureServerExposerFactory in project devspaces-images by redhat-developer.
the class WsMasterModule method installDefaultSecureServerExposer.
private void installDefaultSecureServerExposer(String infrastructure) {
if (KubernetesInfrastructure.NAME.equals(infrastructure)) {
MapBinder<String, SecureServerExposerFactory<KubernetesEnvironment>> secureServerExposerFactories = MapBinder.newMapBinder(binder(), new TypeLiteral<>() {
}, new TypeLiteral<>() {
});
install(new FactoryModuleBuilder().implement(new TypeLiteral<SecureServerExposer<KubernetesEnvironment>>() {
}, new TypeLiteral<PassThroughProxySecureServerExposer<KubernetesEnvironment>>() {
}).build(new TypeLiteral<PassThroughProxySecureServerExposerFactory<KubernetesEnvironment>>() {
}));
secureServerExposerFactories.addBinding("default").to(new TypeLiteral<PassThroughProxySecureServerExposerFactory<KubernetesEnvironment>>() {
});
} else {
MapBinder<String, SecureServerExposerFactory<OpenShiftEnvironment>> secureServerExposerFactories = MapBinder.newMapBinder(binder(), new TypeLiteral<>() {
}, new TypeLiteral<>() {
});
install(new FactoryModuleBuilder().implement(new TypeLiteral<SecureServerExposer<OpenShiftEnvironment>>() {
}, new TypeLiteral<PassThroughProxySecureServerExposer<OpenShiftEnvironment>>() {
}).build(new TypeLiteral<PassThroughProxySecureServerExposerFactory<OpenShiftEnvironment>>() {
}));
secureServerExposerFactories.addBinding("default").to(new TypeLiteral<PassThroughProxySecureServerExposerFactory<OpenShiftEnvironment>>() {
});
}
}
Aggregations