Record Class WrapperMappingInfo
java.lang.Object
java.lang.Record
org.apache.catalina.mapper.WrapperMappingInfo
- Record Components:
mapping
- The URL patternwrapper
- The wrapper for the ServletjspWildCard
- Is this a mapping for JSP files?resourceOnly
- Is this a resource only mapping?
public record WrapperMappingInfo(String mapping, Wrapper wrapper, boolean jspWildCard, boolean resourceOnly)
extends Record
Encapsulates information used to register a Wrapper mapping.
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperMappingInfo
(String mapping, Wrapper wrapper, boolean jspWildCard, boolean resourceOnly) Creates an instance of aWrapperMappingInfo
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.boolean
boolean
boolean
Returns the value of thejspWildCard
record component.mapping()
Returns the value of themapping
record component.boolean
Returns the value of theresourceOnly
record component.final String
toString()
Returns a string representation of this record class.wrapper()
Returns the value of thewrapper
record component.
-
Constructor Details
-
WrapperMappingInfo
public WrapperMappingInfo(String mapping, Wrapper wrapper, boolean jspWildCard, boolean resourceOnly) Creates an instance of aWrapperMappingInfo
record class.- Parameters:
mapping
- the value for themapping
record componentwrapper
- the value for thewrapper
record componentjspWildCard
- the value for thejspWildCard
record componentresourceOnly
- the value for theresourceOnly
record component
-
-
Method Details
-
getMapping
-
getWrapper
-
isJspWildCard
public boolean isJspWildCard() -
isResourceOnly
public boolean isResourceOnly() -
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 thecompare
method from their corresponding wrapper classes. -
mapping
-
wrapper
-
jspWildCard
public boolean jspWildCard()Returns the value of thejspWildCard
record component.- Returns:
- the value of the
jspWildCard
record component
-
resourceOnly
public boolean resourceOnly()Returns the value of theresourceOnly
record component.- Returns:
- the value of the
resourceOnly
record component
-