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 Modifier and Type Field Description static StringMAP_FILE_NODE
-
Constructor Summary
Constructors Constructor Description RedirectMapModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MapEntry>getEntries(long id)List<MapEntry>getInvalidEntries()Get all of the entries from the cq:Pages and dam:Assets which contain whitespace in their vanity URL.StringgetRedirectMap()Get the contents of the RedirectMap as a String
-
-
-
Field Detail
-
MAP_FILE_NODE
public static final String MAP_FILE_NODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntries
public List<MapEntry> getEntries(long id) throws IOException
- Throws:
IOException
-
getInvalidEntries
public List<MapEntry> getInvalidEntries() throws IOException
Get all of the entries from the cq:Pages and dam:Assets which contain whitespace in their vanity URL.- Returns:
- Throws:
IOException
-
getRedirectMap
public String getRedirectMap() throws IOException
Get the contents of the RedirectMap as a String- Returns:
- Throws:
IOException
-
-