Search in sources :

Example 1 with JerseyTransportBinder

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);
}
Also used : JettyTransport(org.datatransferproject.transport.jettyrest.http.JettyTransport) Monitor(org.datatransferproject.api.launcher.Monitor) JettyMonitor(org.datatransferproject.transport.jettyrest.http.JettyMonitor) JerseyTransportBinder(org.datatransferproject.transport.jettyrest.rest.JerseyTransportBinder) KeyStore(java.security.KeyStore)

Aggregations

KeyStore (java.security.KeyStore)1 Monitor (org.datatransferproject.api.launcher.Monitor)1 JettyMonitor (org.datatransferproject.transport.jettyrest.http.JettyMonitor)1 JettyTransport (org.datatransferproject.transport.jettyrest.http.JettyTransport)1 JerseyTransportBinder (org.datatransferproject.transport.jettyrest.rest.JerseyTransportBinder)1