Record Class HttpService.HttpServiceConfig

java.lang.Object
java.lang.Record
ch.rswk.meta.engine.HttpService.HttpServiceConfig
Enclosing class:
HttpService

public static record HttpService.HttpServiceConfig(@Nullable HttpService.HttpServiceAccessConfig access, String cacheControl, @Nullable Set<String> forceHttps, @Nullable HttpService.HttpServiceHeaderConfig header, int httpPort, int httpsPort, @Nullable String logPath, int maxConnections, int maxThreads, @Nullable Map<String,String> mimeTypes, @Nullable Map<String,String> redirect, @Nullable Set<String> resources, @Nullable HttpService.HttpServiceSslConfig ssl) extends Record
  • Field Details

    • access

      private final @Nullable HttpService.HttpServiceAccessConfig access
      The field for the access record component.
    • cacheControl

      private final String cacheControl
      The field for the cacheControl record component.
    • forceHttps

      private final @Nullable Set<String> forceHttps
      The field for the forceHttps record component.
    • httpPort

      private final int httpPort
      The field for the httpPort record component.
    • httpsPort

      private final int httpsPort
      The field for the httpsPort record component.
    • logPath

      private final @Nullable String logPath
      The field for the logPath record component.
    • maxConnections

      private final int maxConnections
      The field for the maxConnections record component.
    • maxThreads

      private final int maxThreads
      The field for the maxThreads record component.
    • mimeTypes

      private final @Nullable Map<String,String> mimeTypes
      The field for the mimeTypes record component.
    • redirect

      private final @Nullable Map<String,String> redirect
      The field for the redirect record component.
    • resources

      private final @Nullable Set<String> resources
      The field for the resources record component.
    • ssl

      private final @Nullable HttpService.HttpServiceSslConfig ssl
      The field for the ssl record component.
  • Constructor Details

    • HttpServiceConfig

      public HttpServiceConfig(@Nullable HttpService.HttpServiceAccessConfig access, String cacheControl, @Nullable Set<String> forceHttps, @Nullable HttpService.HttpServiceHeaderConfig header, int httpPort, int httpsPort, @Nullable String logPath, int maxConnections, int maxThreads, @Nullable Map<String,String> mimeTypes, @Nullable Map<String,String> redirect, @Nullable Set<String> resources, @Nullable HttpService.HttpServiceSslConfig ssl)
      Creates an instance of a HttpServiceConfig record class.
      Parameters:
      access - the value for the access record component
      cacheControl - the value for the cacheControl record component
      forceHttps - the value for the forceHttps record component
      header - the value for the header record component
      httpPort - the value for the httpPort record component
      httpsPort - the value for the httpsPort record component
      logPath - the value for the logPath record component
      maxConnections - the value for the maxConnections record component
      maxThreads - the value for the maxThreads record component
      mimeTypes - the value for the mimeTypes record component
      redirect - the value for the redirect record component
      resources - the value for the resources record component
      ssl - the value for the ssl record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • access

      public @Nullable HttpService.HttpServiceAccessConfig access()
      Returns the value of the access record component.
      Returns:
      the value of the access record component
    • cacheControl

      public String cacheControl()
      Returns the value of the cacheControl record component.
      Returns:
      the value of the cacheControl record component
    • forceHttps

      public @Nullable Set<String> forceHttps()
      Returns the value of the forceHttps record component.
      Returns:
      the value of the forceHttps record component
    • header

      public @Nullable HttpService.HttpServiceHeaderConfig header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • httpPort

      public int httpPort()
      Returns the value of the httpPort record component.
      Returns:
      the value of the httpPort record component
    • httpsPort

      public int httpsPort()
      Returns the value of the httpsPort record component.
      Returns:
      the value of the httpsPort record component
    • logPath

      public @Nullable String logPath()
      Returns the value of the logPath record component.
      Returns:
      the value of the logPath record component
    • maxConnections

      public int maxConnections()
      Returns the value of the maxConnections record component.
      Returns:
      the value of the maxConnections record component
    • maxThreads

      public int maxThreads()
      Returns the value of the maxThreads record component.
      Returns:
      the value of the maxThreads record component
    • mimeTypes

      public @Nullable Map<String,String> mimeTypes()
      Returns the value of the mimeTypes record component.
      Returns:
      the value of the mimeTypes record component
    • redirect

      public @Nullable Map<String,String> redirect()
      Returns the value of the redirect record component.
      Returns:
      the value of the redirect record component
    • resources

      public @Nullable Set<String> resources()
      Returns the value of the resources record component.
      Returns:
      the value of the resources record component
    • ssl

      public @Nullable HttpService.HttpServiceSslConfig ssl()
      Returns the value of the ssl record component.
      Returns:
      the value of the ssl record component