org.apache.sling.engine.impl.request
Class SlingRequestPathInfo
java.lang.Object
org.apache.sling.engine.impl.request.SlingRequestPathInfo
- All Implemented Interfaces:
- org.apache.sling.api.request.RequestPathInfo
public class SlingRequestPathInfo
- extends java.lang.Object
- implements org.apache.sling.api.request.RequestPathInfo
Sling request URI parser that provides SlingRequestPathInfo for the
current request, based on the path of the Resource. The values provided by
this depend on the Resource.getPath() value, as the ResourceResolver might
use all or only part of the request URI path to locate the resource (see also
SLING-60 ). What we're after is the remainder of the path, the part that was
not used to locate the Resource, and we split that part in different
subparts: selectors, extension and suffix.
- See Also:
for a number of examples.
|
Constructor Summary |
SlingRequestPathInfo(org.apache.sling.api.resource.Resource r)
break requestPath as required by SlingRequestPathInfo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SlingRequestPathInfo
public SlingRequestPathInfo(org.apache.sling.api.resource.Resource r)
- break requestPath as required by SlingRequestPathInfo
merge
public SlingRequestPathInfo merge(org.apache.sling.api.request.RequestPathInfo baseInfo)
merge
public SlingRequestPathInfo merge(org.apache.sling.api.request.RequestDispatcherOptions options)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getExtension
public java.lang.String getExtension()
- Specified by:
getExtension in interface org.apache.sling.api.request.RequestPathInfo
getSelectors
public java.lang.String[] getSelectors()
- Specified by:
getSelectors in interface org.apache.sling.api.request.RequestPathInfo
getSelectorString
public java.lang.String getSelectorString()
- Specified by:
getSelectorString in interface org.apache.sling.api.request.RequestPathInfo
getSuffix
public java.lang.String getSuffix()
- Specified by:
getSuffix in interface org.apache.sling.api.request.RequestPathInfo
getResourcePath
public java.lang.String getResourcePath()
- Specified by:
getResourcePath in interface org.apache.sling.api.request.RequestPathInfo
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.