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.HttpServiceAccessConfigThe field for theaccessrecord component.private final StringThe field for thecacheControlrecord component.The field for theforceHttpsrecord component.private final @Nullable HttpService.HttpServiceHeaderConfigThe field for theheaderrecord component.private final intThe field for thehttpPortrecord component.private final intThe field for thehttpsPortrecord component.private final @Nullable StringThe field for thelogPathrecord component.private final intThe field for themaxConnectionsrecord component.private final intThe field for themaxThreadsrecord component.The field for themimeTypesrecord component.The field for theredirectrecord component.The field for theresourcesrecord component.private final @Nullable HttpService.HttpServiceSslConfigThe field for thesslrecord 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 aHttpServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable HttpService.HttpServiceAccessConfigaccess()Returns the value of theaccessrecord component.Returns the value of thecacheControlrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforceHttpsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable HttpService.HttpServiceHeaderConfigheader()Returns the value of theheaderrecord component.inthttpPort()Returns the value of thehttpPortrecord component.intReturns the value of thehttpsPortrecord component.@Nullable StringlogPath()Returns the value of thelogPathrecord component.intReturns the value of themaxConnectionsrecord component.intReturns the value of themaxThreadsrecord component.Returns the value of themimeTypesrecord component.redirect()Returns the value of theredirectrecord component.Returns the value of theresourcesrecord component.@Nullable HttpService.HttpServiceSslConfigssl()Returns the value of thesslrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
access
The field for theaccessrecord component. -
cacheControl
The field for thecacheControlrecord component. -
forceHttps
-
header
The field for theheaderrecord component. -
httpPort
private final int httpPortThe field for thehttpPortrecord component. -
httpsPort
private final int httpsPortThe field for thehttpsPortrecord component. -
logPath
The field for thelogPathrecord component. -
maxConnections
private final int maxConnectionsThe field for themaxConnectionsrecord component. -
maxThreads
private final int maxThreadsThe field for themaxThreadsrecord component. -
mimeTypes
-
redirect
-
resources
-
ssl
The field for thesslrecord 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 aHttpServiceConfigrecord class.- Parameters:
access- the value for theaccessrecord componentcacheControl- the value for thecacheControlrecord componentforceHttps- the value for theforceHttpsrecord componentheader- the value for theheaderrecord componenthttpPort- the value for thehttpPortrecord componenthttpsPort- the value for thehttpsPortrecord componentlogPath- the value for thelogPathrecord componentmaxConnections- the value for themaxConnectionsrecord componentmaxThreads- the value for themaxThreadsrecord componentmimeTypes- the value for themimeTypesrecord componentredirect- the value for theredirectrecord componentresources- the value for theresourcesrecord componentssl- the value for thesslrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 theaccessrecord component.- Returns:
- the value of the
accessrecord component
-
cacheControl
Returns the value of thecacheControlrecord component.- Returns:
- the value of the
cacheControlrecord component
-
forceHttps
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
httpPort
public int httpPort()Returns the value of thehttpPortrecord component.- Returns:
- the value of the
httpPortrecord component
-
httpsPort
public int httpsPort()Returns the value of thehttpsPortrecord component.- Returns:
- the value of the
httpsPortrecord component
-
logPath
Returns the value of thelogPathrecord component.- Returns:
- the value of the
logPathrecord component
-
maxConnections
public int maxConnections()Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
maxThreads
public int maxThreads()Returns the value of themaxThreadsrecord component.- Returns:
- the value of the
maxThreadsrecord component
-
mimeTypes
-
redirect
-
resources
-
ssl
Returns the value of thesslrecord component.- Returns:
- the value of the
sslrecord component
-