Record Class SSIServletExternalResolver.ServletContextAndPath
java.lang.Object
java.lang.Record
org.apache.catalina.ssi.SSIServletExternalResolver.ServletContextAndPath
- Enclosing class:
SSIServletExternalResolver
protected static record SSIServletExternalResolver.ServletContextAndPath(ServletContext servletContext, String path)
extends Record
- Author:
- Dan Sandberg, David Becker
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServletContextAndPath
(ServletContext servletContext, String path) Creates an instance of aServletContextAndPath
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getPath()
final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.Returns the value of theservletContext
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ServletContextAndPath
Creates an instance of aServletContextAndPath
record class.- Parameters:
servletContext
- the value for theservletContext
record componentpath
- the value for thepath
record component
-
-
Method Details
-
getServletContext
-
getPath
-
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)
. -
servletContext
Returns the value of theservletContext
record component.- Returns:
- the value of the
servletContext
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-