org.apache.sling.jcr.resource.internal.helper
Class RedirectResource

java.lang.Object
  extended by org.apache.sling.api.adapter.SlingAdaptable
      extended by org.apache.sling.api.resource.AbstractResource
          extended by org.apache.sling.api.resource.SyntheticResource
              extended by org.apache.sling.jcr.resource.internal.helper.RedirectResource
All Implemented Interfaces:
Adaptable, Resource

public final class RedirectResource
extends SyntheticResource


Field Summary
 
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING
 
Constructor Summary
RedirectResource(ResourceResolver resolver, String path, String target, int status)
           
 
Method Summary
<AdapterType>
AdapterType
adaptTo(Class<AdapterType> type)
          Adapts the adaptable to another type.
 String toString()
           
 
Methods inherited from class org.apache.sling.api.resource.SyntheticResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType
 
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getName, getParent, isResourceType, listChildren
 
Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable
setAdapterManager, unsetAdapterManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectResource

public RedirectResource(ResourceResolver resolver,
                        String path,
                        String target,
                        int status)
Method Detail

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.