Class ApplicationServletEnvironment

java.lang.Object
org.springframework.core.env.AbstractEnvironment
org.springframework.core.env.StandardEnvironment
org.springframework.web.context.support.StandardServletEnvironment
org.springframework.boot.web.context.servlet.ApplicationServletEnvironment
All Implemented Interfaces:
org.springframework.core.env.ConfigurableEnvironment, org.springframework.core.env.ConfigurablePropertyResolver, org.springframework.core.env.Environment, org.springframework.core.env.PropertyResolver, org.springframework.web.context.ConfigurableWebEnvironment

public class ApplicationServletEnvironment extends org.springframework.web.context.support.StandardServletEnvironment
StandardServletEnvironment for typical use in a typical SpringApplication.
Since:
4.0.0
  • Field Summary

    Fields inherited from class org.springframework.web.context.support.StandardServletEnvironment

    JNDI_PROPERTY_SOURCE_NAME, SERVLET_CONFIG_PROPERTY_SOURCE_NAME, SERVLET_CONTEXT_PROPERTY_SOURCE_NAME

    Fields inherited from class org.springframework.core.env.StandardEnvironment

    SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME

    Fields inherited from class org.springframework.core.env.AbstractEnvironment

    ACTIVE_PROFILES_PROPERTY_NAME, DEFAULT_PROFILES_PROPERTY_NAME, IGNORE_GETENV_PROPERTY_NAME, logger, RESERVED_DEFAULT_PROFILE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.core.env.ConfigurablePropertyResolver
    createPropertyResolver(org.springframework.core.env.MutablePropertySources propertySources)
     
    protected @Nullable String
     
    protected @Nullable String
     

    Methods inherited from class org.springframework.web.context.support.StandardServletEnvironment

    customizePropertySources, initPropertySources

    Methods inherited from class org.springframework.core.env.AbstractEnvironment

    acceptsProfiles, acceptsProfiles, addActiveProfile, containsProperty, doGetActiveProfiles, doGetDefaultProfiles, getActiveProfiles, getConversionService, getDefaultProfiles, getProperty, getProperty, getProperty, getProperty, getPropertyResolver, getPropertySources, getRequiredProperty, getRequiredProperty, getReservedDefaultProfiles, getSystemEnvironment, getSystemProperties, isProfileActive, merge, resolvePlaceholders, resolveRequiredPlaceholders, setActiveProfiles, setConversionService, setDefaultProfiles, setEscapeCharacter, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, suppressGetenvAccess, toString, validateProfile, validateRequiredProperties

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.core.env.ConfigurableEnvironment

    addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfiles

    Methods inherited from interface org.springframework.core.env.ConfigurablePropertyResolver

    getConversionService, setConversionService, setEscapeCharacter, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredProperties

    Methods inherited from interface org.springframework.core.env.Environment

    acceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfiles, matchesProfiles

    Methods inherited from interface org.springframework.core.env.PropertyResolver

    containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
  • Constructor Details

    • ApplicationServletEnvironment

      public ApplicationServletEnvironment()
  • Method Details

    • doGetActiveProfilesProperty

      protected @Nullable String doGetActiveProfilesProperty()
      Overrides:
      doGetActiveProfilesProperty in class org.springframework.core.env.AbstractEnvironment
    • doGetDefaultProfilesProperty

      protected @Nullable String doGetDefaultProfilesProperty()
      Overrides:
      doGetDefaultProfilesProperty in class org.springframework.core.env.AbstractEnvironment
    • createPropertyResolver

      protected org.springframework.core.env.ConfigurablePropertyResolver createPropertyResolver(org.springframework.core.env.MutablePropertySources propertySources)
      Overrides:
      createPropertyResolver in class org.springframework.core.env.AbstractEnvironment