org.springframework.boot.web.server

Class Http2

  • java.lang.Object
    • org.springframework.boot.web.server.Http2


  • public class Http2
    extends java.lang.Object
    Simple server-independent abstraction for HTTP/2 configuration.
    Since:
    2.0.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      Http2() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isEnabled()
      Return whether to enable HTTP/2 support, if the current environment supports it.
      void setEnabled(boolean enabled) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Http2

        public Http2()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Return whether to enable HTTP/2 support, if the current environment supports it.
        Returns:
        true to enable HTTP/2 support
      • setEnabled

        public void setEnabled(boolean enabled)