use of org.datatransferproject.transport.jettyrest.rest.JerseyTransportBinder in project data-transfer-project by google.
the class JettyRestExtension method initialize.
@Override
public void initialize(ExtensionContext context) {
Monitor monitor = context.getMonitor();
JettyMonitor.setDelegate(monitor);
KeyStore keyStore = context.getService(KeyStore.class);
boolean useHttps = context.getSetting("useHttps", true);
transport = new JettyTransport(keyStore, useHttps, monitor);
binder = new JerseyTransportBinder(transport);
context.registerService(TransportBinder.class, binder);
}
Aggregations