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
ConstructorsModifierConstructorDescriptionprotectedServletContextAndPath(ServletContext servletContext, String path) Creates an instance of aServletContextAndPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getPath()final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.Returns the value of theservletContextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServletContextAndPath
Creates an instance of aServletContextAndPathrecord class.- Parameters:
servletContext- the value for theservletContextrecord componentpath- the value for thepathrecord 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 theservletContextrecord component.- Returns:
- the value of the
servletContextrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-