org.apache.sling.jcr.resource.internal.helper
Class RedirectResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.api.resource.SyntheticResource
org.apache.sling.jcr.resource.internal.helper.RedirectResource
- All Implemented Interfaces:
- Adaptable, Resource
public final class RedirectResource
- extends SyntheticResource
RedirectResource
public RedirectResource(ResourceResolver resolver,
String path,
String target,
int status)
adaptTo
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
- Description copied from interface:
Adaptable
- Adapts the adaptable to another type.
- Specified by:
adaptTo
in interface Adaptable
- Overrides:
adaptTo
in class SlingAdaptable
- Type Parameters:
AdapterType
- The generic type to which this resource is adapted
to- Parameters:
type
- The Class object of the target type, such as
Node.class
- Returns:
- The adapter target or
null
if the resource cannot
adapt to the requested type - See Also:
Adaptable.adaptTo(java.lang.Class)
toString
public String toString()
- Overrides:
toString
in class SyntheticResource
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.