/** {@inheritDoc} */ public String getName() { return INSTANCE.getName(); } }
/** * Get a string representation of this XNIO provider. * * @return the string representation */ public final String toString() { return String.format("XNIO provider \"%s\" <%s@%s>", getName(), getClass().getName(), Integer.toHexString(hashCode())); }
@Override public void start(BundleContext context) throws Exception { XnioProvider provider = new NioXnioProvider(); Xnio xnio = provider.getInstance(); String name = xnio.getName(); Hashtable<String, String> props = new Hashtable<>(); props.put("name", name); registrationS = context.registerService(Xnio.class, xnio, props); registrationP = context.registerService(XnioProvider.class, provider, props); }
/** {@inheritDoc} */ public String getName() { return INSTANCE.getName(); } }
/** {@inheritDoc} */ public String getName() { return INSTANCE.getName(); } }
/** * Get a string representation of this XNIO provider. * * @return the string representation */ public final String toString() { return String.format("XNIO provider \"%s\" <%s@%s>", getName(), getClass().getName(), Integer.toHexString(hashCode())); }
@Override public void start(BundleContext context) throws Exception { XnioProvider provider = new NioXnioProvider(); Xnio xnio = provider.getInstance(); String name = xnio.getName(); Hashtable<String, String> props = new Hashtable<>(); props.put("name", name); registrationS = context.registerService(Xnio.class, xnio, props); registrationP = context.registerService(XnioProvider.class, provider, props); }
@Override public void start(BundleContext context) throws Exception { XnioProvider provider = new NioXnioProvider(); Xnio xnio = provider.getInstance(); String name = xnio.getName(); Hashtable<String, String> props = new Hashtable<>(); props.put("name", name); registrationS = context.registerService(Xnio.class, xnio, props); registrationP = context.registerService(XnioProvider.class, provider, props); }
.getName()); Undertow.Builder server = Undertow.builder(); if (http2)