Package org.apache.sling.models.impl.via
Class OriginalResourceTypeViaProvider
java.lang.Object
org.apache.sling.models.impl.via.OriginalResourceTypeViaProvider
- All Implemented Interfaces:
org.apache.sling.models.spi.ViaProvider
public class OriginalResourceTypeViaProvider
extends Object
implements org.apache.sling.models.spi.ViaProvider
This
ViaProvider implements the counterpart of the ForcedResourceTypeViaProvider and the
ResourceSuperTypeViaProvider. It is in particular helpful in models that want to inject another model using the original
Resource's, SlingJakartaHttpServletRequest's or SlingHttpServletRequest's resource type instead of the one forced by either of the above-mentioned
ViaProviders
The implementation simply unwraps the ResourceWrapper,
SlingJakartaHttpServletRequestWrapper or
SlingHttpServletRequestWrapper used by the ForcedResourceTypeViaProvider and
ResourceSuperTypeViaProvider.
-
Field Summary
Fields inherited from interface org.apache.sling.models.spi.ViaProvider
ORIGINAL -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OriginalResourceTypeViaProvider
public OriginalResourceTypeViaProvider()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceorg.apache.sling.models.spi.ViaProvider
-
getAdaptable
- Specified by:
getAdaptablein interfaceorg.apache.sling.models.spi.ViaProvider
-