@Override protected DeploymentContext configureDeployment() { return ServletDeploymentContext.builder(new DropwizardTestResourceConfig(configuration)) .initParam(ServletProperties.JAXRS_APPLICATION_CLASS, DropwizardTestResourceConfig.class.getName()) .initParam(DropwizardTestResourceConfig.CONFIGURATION_ID, configuration.getId()) .build(); }
@Override protected final DeploymentContext configureDeployment() { configureProperties(); String joinedPackages = String.join(",", getResourcePackages()) + ",com.cloudera.oryx.lambda.serving"; return ServletDeploymentContext.builder(OryxApplication.class) .initParam("javax.ws.rs.Application", OryxApplication.class.getName()) .contextParam(OryxApplication.class.getName() + ".packages", joinedPackages) .addListener(getInitListenerClass()) .build(); }
@Override protected DeploymentContext configureDeployment() { return ServletDeploymentContext.builder(new DropwizardTestResourceConfig(configuration)) .initParam(ServletProperties.JAXRS_APPLICATION_CLASS, DropwizardTestResourceConfig.class.getName()) .initParam(DropwizardTestResourceConfig.CONFIGURATION_ID, configuration.getId()) .build(); }
/** * Create new servlet deployment context initialized with the providers from the specified packages. * <p> * The {@code packages} value will be set as one of the {@link Builder#initParam(String, String) initialization parameters} * with <tt>{@value org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES}</tt> key. * </p> * * @param packages list of application packages containing JAX-RS / Jersey provider and resource classes. * @return new servlet deployment context instance initialized with the providers from the specified packages. * * @throws java.lang.NullPointerException is the specified map is {@code null}. * @see org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES */ public static Builder newInstance(String packages) { return new Builder().initParam(ServerProperties.PROVIDER_PACKAGES, packages); }
/** * Create new servlet deployment context builder initialized with the providers from the specified packages. * <p> * The {@code packages} value will be set as one of the {@link Builder#initParam(String, String) initialization parameters} * with <tt>{@value org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES}</tt> key. * </p> * * @param packages list of application packages containing JAX-RS / Jersey provider and resource classes. * @return new servlet deployment context builder instance initialized with the providers from the specified packages. * * @throws java.lang.NullPointerException is the specified map is {@code null}. * @see org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES */ public static Builder forPackages(String packages) { return new Builder().initParam(ServerProperties.PROVIDER_PACKAGES, packages); }
/** * Create a builder with one initialization parameter. * * @param name the parameter name. * @param value the parameter value. */ public Builder(String name, String value) { initParam(name, value); }
/** * Create new servlet deployment context builder initialized with the providers from the specified packages. * <p> * The {@code packages} value will be set as one of the {@link Builder#initParam(String, String) initialization parameters} * with <tt>{@value org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES}</tt> key. * </p> * * @param packages list of application packages containing JAX-RS / Jersey provider and resource classes. * @return new servlet deployment context builder instance initialized with the providers from the specified packages. * * @throws java.lang.NullPointerException is the specified map is {@code null}. * @see org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES */ public static Builder forPackages(String packages) { return new Builder().initParam(ServerProperties.PROVIDER_PACKAGES, packages); }
/** * Create new servlet deployment context initialized with the providers from the specified packages. * <p> * The {@code packages} value will be set as one of the {@link Builder#initParam(String, String) initialization parameters} * with <tt>{@value org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES}</tt> key. * </p> * * @param packages list of application packages containing JAX-RS / Jersey provider and resource classes. * @return new servlet deployment context instance initialized with the providers from the specified packages. * * @throws java.lang.NullPointerException is the specified map is {@code null}. * @see org.glassfish.jersey.server.ServerProperties#PROVIDER_PACKAGES */ public static Builder newInstance(String packages) { return new Builder().initParam(ServerProperties.PROVIDER_PACKAGES, packages); }
/** * Create a builder with one initialization parameter. * * @param name the parameter name. * @param value the parameter value. */ public Builder(String name, String value) { initParam(name, value); }