Package org.apache.catalina.mapper
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 aWrapperMappingInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanReturns the value of thejspWildCardrecord component.mapping()Returns the value of themappingrecord component.booleanReturns the value of theresourceOnlyrecord component.final StringtoString()Returns a string representation of this record class.wrapper()Returns the value of thewrapperrecord component.
-
Constructor Details
-
WrapperMappingInfo
public WrapperMappingInfo(String mapping, Wrapper wrapper, boolean jspWildCard, boolean resourceOnly) Creates an instance of aWrapperMappingInforecord class.- Parameters:
mapping- the value for themappingrecord componentwrapper- the value for thewrapperrecord componentjspWildCard- the value for thejspWildCardrecord componentresourceOnly- the value for theresourceOnlyrecord component
-
-
Method Details
-
getMapping
-
getWrapper
-
isJspWildCard
public boolean isJspWildCard() -
isResourceOnly
public boolean isResourceOnly() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-
wrapper
Returns the value of thewrapperrecord component.- Returns:
- the value of the
wrapperrecord component
-
jspWildCard
public boolean jspWildCard()Returns the value of thejspWildCardrecord component.- Returns:
- the value of the
jspWildCardrecord component
-
resourceOnly
public boolean resourceOnly()Returns the value of theresourceOnlyrecord component.- Returns:
- the value of the
resourceOnlyrecord component
-