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?
-
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.Returns the URL pattern.Returns the wrapper for the Servlet.final inthashCode()Returns a hash code value for this object.booleanReturns whether this is a mapping for JSP files.booleanReturns whether this is a resource only mapping.booleanReturns 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()Returns whether this is a mapping for JSP files.- Returns:
trueif this is a JSP wildcard mapping
-
isResourceOnly
public boolean isResourceOnly()Returns whether this is a resource only mapping.- Returns:
trueif this is a resource only mapping
-
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 thecomparemethod from their corresponding wrapper classes. -
mapping
-
wrapper
-
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
-