Package ch.rswk.meta.engine
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable HttpService.HttpServiceAccessConfig
The field for theaccess
record component.private final String
The field for thecacheControl
record component.The field for theforceHttps
record component.private final @Nullable HttpService.HttpServiceHeaderConfig
The field for theheader
record component.private final int
The field for thehttpPort
record component.private final int
The field for thehttpsPort
record component.private final @Nullable String
The field for thelogPath
record component.private final int
The field for themaxConnections
record component.private final int
The field for themaxThreads
record component.The field for themimeTypes
record component.The field for theredirect
record component.The field for theresources
record component.private final @Nullable HttpService.HttpServiceSslConfig
The field for thessl
record component. -
Constructor Summary
ConstructorsConstructorDescriptionHttpServiceConfig
(@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 aHttpServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable HttpService.HttpServiceAccessConfig
access()
Returns the value of theaccess
record component.Returns the value of thecacheControl
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theforceHttps
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable HttpService.HttpServiceHeaderConfig
header()
Returns the value of theheader
record component.int
httpPort()
Returns the value of thehttpPort
record component.int
Returns the value of thehttpsPort
record component.@Nullable String
logPath()
Returns the value of thelogPath
record component.int
Returns the value of themaxConnections
record component.int
Returns the value of themaxThreads
record component.Returns the value of themimeTypes
record component.redirect()
Returns the value of theredirect
record component.Returns the value of theresources
record component.@Nullable HttpService.HttpServiceSslConfig
ssl()
Returns the value of thessl
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
access
The field for theaccess
record component. -
cacheControl
The field for thecacheControl
record component. -
forceHttps
The field for theforceHttps
record component. -
header
The field for theheader
record component. -
httpPort
private final int httpPortThe field for thehttpPort
record component. -
httpsPort
private final int httpsPortThe field for thehttpsPort
record component. -
logPath
The field for thelogPath
record component. -
maxConnections
private final int maxConnectionsThe field for themaxConnections
record component. -
maxThreads
private final int maxThreadsThe field for themaxThreads
record component. -
mimeTypes
The field for themimeTypes
record component. -
redirect
The field for theredirect
record component. -
resources
The field for theresources
record component. -
ssl
The field for thessl
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 aHttpServiceConfig
record class.- Parameters:
access
- the value for theaccess
record componentcacheControl
- the value for thecacheControl
record componentforceHttps
- the value for theforceHttps
record componentheader
- the value for theheader
record componenthttpPort
- the value for thehttpPort
record componenthttpsPort
- the value for thehttpsPort
record componentlogPath
- the value for thelogPath
record componentmaxConnections
- the value for themaxConnections
record componentmaxThreads
- the value for themaxThreads
record componentmimeTypes
- the value for themimeTypes
record componentredirect
- the value for theredirect
record componentresources
- the value for theresources
record componentssl
- the value for thessl
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
access
Returns the value of theaccess
record component.- Returns:
- the value of the
access
record component
-
cacheControl
Returns the value of thecacheControl
record component.- Returns:
- the value of the
cacheControl
record component
-
forceHttps
Returns the value of theforceHttps
record component.- Returns:
- the value of the
forceHttps
record component
-
header
Returns the value of theheader
record component.- Returns:
- the value of the
header
record component
-
httpPort
public int httpPort()Returns the value of thehttpPort
record component.- Returns:
- the value of the
httpPort
record component
-
httpsPort
public int httpsPort()Returns the value of thehttpsPort
record component.- Returns:
- the value of the
httpsPort
record component
-
logPath
Returns the value of thelogPath
record component.- Returns:
- the value of the
logPath
record component
-
maxConnections
public int maxConnections()Returns the value of themaxConnections
record component.- Returns:
- the value of the
maxConnections
record component
-
maxThreads
public int maxThreads()Returns the value of themaxThreads
record component.- Returns:
- the value of the
maxThreads
record component
-
mimeTypes
Returns the value of themimeTypes
record component.- Returns:
- the value of the
mimeTypes
record component
-
redirect
Returns the value of theredirect
record component.- Returns:
- the value of the
redirect
record component
-
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-
ssl
Returns the value of thessl
record component.- Returns:
- the value of the
ssl
record component
-