Interface RestServiceSettings.Builder

    • Field Detail

      • ROUTING_NAME_CONFIG_KEY

        static final String ROUTING_NAME_CONFIG_KEY
        Config key for the routing name setting.
        See Also:
        Constant Field Values
      • WEB_CONTEXT_CONFIG_KEY

        static final String WEB_CONTEXT_CONFIG_KEY
        Config key for the web context setting.
        See Also:
        Constant Field Values
    • Method Detail

      • webContext

        RestServiceSettings.Builder webContext​(String webContext)
        Sets the web context to use for the service's endpoint.
        Parameters:
        webContext - web context
        Returns:
        updated builder
      • routing

        RestServiceSettings.Builder routing​(String routing)
        Sets the routing name to use for setting up the service's endpoint.
        Parameters:
        routing - routing name as defined in the server settings
        Returns:
        updated builder
      • crossOriginConfig

        RestServiceSettings.Builder crossOriginConfig​(CrossOriginConfig.Builder crossOriginConfigBuilder)
        Sets the cross-origin config builder for use in establishing CORS support for the service endpoints.
        Parameters:
        crossOriginConfigBuilder - builder for the CORS settings
        Returns:
        updated builder
      • crossOriginConfig

        RestServiceSettings.Builder crossOriginConfig​(CrossOriginConfig crossOriginConfig)
        Sets the cross-origin settings from existing settings (not from a builder).
        Parameters:
        crossOriginConfig - existing cross-origin settings
        Returns:
        updated builder
      • config

        RestServiceSettings.Builder config​(Config serviceConfig)
        Updates settings using the provided Config node for the service of interest.
        Parameters:
        serviceConfig - config node for the service
        Returns:
        updated builder