Class RedirectMapModel
java.lang.Object
com.adobe.acs.commons.redirectmaps.models.RedirectMapModel
@ProviderType
@Model(adaptables=org.apache.sling.api.resource.Resource.class)
public class RedirectMapModel
extends Object
A Sling Model for serializing a RedirectMap configuration to a consolidated
RedirectMap text file
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntries(long id) Get all of the entries from the cq:Pages and dam:Assets which contain whitespace in their vanity URL.Get the contents of the RedirectMap as a String
-
Field Details
-
MAP_FILE_NODE
- See Also:
-
-
Constructor Details
-
RedirectMapModel
public RedirectMapModel()
-
-
Method Details
-
getEntries
- Throws:
IOException
-
getInvalidEntries
Get all of the entries from the cq:Pages and dam:Assets which contain whitespace in their vanity URL.- Returns:
- Throws:
IOException
-
getRedirectMap
Get the contents of the RedirectMap as a String- Returns:
- Throws:
IOException
-