Package ch.rswk.meta.engine
Record Class HttpService.ServletConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.HttpService.ServletConfig
- Enclosing class:
HttpService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServletConfig
(org.eclipse.jetty.servlet.ServletHolder servlet, String path) Creates an instance of aServletConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.org.eclipse.jetty.servlet.ServletHolder
servlet()
Returns the value of theservlet
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
servlet
private final org.eclipse.jetty.servlet.ServletHolder servletThe field for theservlet
record component. -
path
The field for thepath
record component.
-
-
Constructor Details
-
ServletConfig
Creates an instance of aServletConfig
record class.- Parameters:
servlet
- the value for theservlet
record componentpath
- the value for thepath
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
servlet
public org.eclipse.jetty.servlet.ServletHolder servlet()Returns the value of theservlet
record component.- Returns:
- the value of the
servlet
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-