Class JerseySeBootstrapConfiguration

  • All Implemented Interfaces:
    jakarta.ws.rs.SeBootstrap.Configuration

    public final class JerseySeBootstrapConfiguration
    extends Object
    implements jakarta.ws.rs.SeBootstrap.Configuration
    Jersey implementation of SeBootstrap.Configuration implementing arbitrary methods for acquiring the configuration settings.
    Since:
    3.1.0
    • Field Detail

      • RANDOM

        protected static final Random RANDOM
    • Method Detail

      • property

        public Object property​(String name)
        Specified by:
        property in interface jakarta.ws.rs.SeBootstrap.Configuration
      • uri

        public URI uri​(boolean resolveDefaultPort)
        Compose URI based on properties defined in this configuration.
        Parameters:
        resolveDefaultPort - if true the port is not set, it is resolved as Container.DEFAULT_HTTP_PORT or Container.DEFAULT_HTTPS_PORT based on the protocol scheme.
        Returns:
        Composed URI based on properties defined in this configuration.
      • sslContext

        public SSLContext sslContext()
        Return SSLContext in the configuration if the protocol scheme is HTTPS.
        Specified by:
        sslContext in interface jakarta.ws.rs.SeBootstrap.Configuration
        Returns:
        the SSLContext in the configuration.
      • isHttps

        public boolean isHttps()
        If the protocol schema is HTTPS, return true.
        Returns:
        true when the protocol schema is HTTPS.
      • from

        public static JerseySeBootstrapConfiguration from​(jakarta.ws.rs.SeBootstrap.Configuration configuration)
        Factory method creating JerseySeBootstrapConfiguration wrapper around SeBootstrap.Configuration.
        Parameters:
        configuration - wrapped configuration
        Returns:
        JerseySeBootstrapConfiguration wrapper around SeBootstrap.Configuration.
      • builder

        public static JerseySeBootstrapConfiguration.Builder builder()
        Return a Jersey instance of SeBootstrap.Configuration.Builder with prefilled values.
        Returns:
        a Jersey instance of SeBootstrap.Configuration.Builder.