Class ServletDeploymentContext


  • public class ServletDeploymentContext
    extends DeploymentContext
    A Servlet-based deployment context.

    An instance of this class is created by creating using ServletDeploymentContext.Builder, that allows to configure the deployment context state, and finally building the context by invoking the ServletDeploymentContext.Builder.build() method.

    This deployment context is compatible with Servlet-based test containers. The following test container factories support the descriptor:

    • org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory for testing with the Grizzly Servlet container.
    • org.glassfish.jersey.test.external.ExternalTestContainerFactory for testing Java EE Web applications deployed independently in a separate JVM to that of the tests. For example, the application may be deployed to the GlassFish or WebLogic application server.

    Since:
    2.8
    Author:
    Paul Sandoz, Marek Potociar