Class RedirectRule
java.lang.Object
com.adobe.acs.commons.redirects.models.RedirectRule
@Model(adaptables={org.apache.sling.api.SlingHttpServletRequest.class,org.apache.sling.api.resource.Resource.class},
defaultInjectionStrategy=OPTIONAL)
public class RedirectRule
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SOURCE_PROPERTY_NAME
- See Also:
-
TARGET_PROPERTY_NAME
- See Also:
-
STATUS_CODE_PROPERTY_NAME
- See Also:
-
UNTIL_DATE_PROPERTY_NAME
- See Also:
-
EFFECTIVE_FROM_PROPERTY_NAME
- See Also:
-
NOTE_PROPERTY_NAME
- See Also:
-
CONTEXT_PREFIX_IGNORED_PROPERTY_NAME
- See Also:
-
EVALUATE_URI_PROPERTY_NAME
- See Also:
-
CREATED_PROPERTY_NAME
- See Also:
-
CREATED_BY_PROPERTY_NAME
- See Also:
-
MODIFIED_PROPERTY_NAME
- See Also:
-
MODIFIED_BY_PROPERTY_NAME
- See Also:
-
TAGS_PROPERTY_NAME
- See Also:
-
CACHE_CONTROL_HEADER_NAME
- See Also:
-
CASE_INSENSITIVE_PROPERTY_NAME
- See Also:
-
REDIRECT_RESOURCE_REQUEST_ATTRIBUTE
- See Also:
-
PRESERVE_QUERY_STRING
- See Also:
-
-
Constructor Details
-
RedirectRule
public RedirectRule()
-
-
Method Details
-
init
-
getSource
-
getTarget
-
getNote
-
getStatusCode
public int getStatusCode() -
getEvaluateURI
public boolean getEvaluateURI() -
isCaseInsensitive
public boolean isCaseInsensitive() -
getCreatedBy
-
getModifiedBy
-
getContextPrefixIgnored
public boolean getContextPrefixIgnored() -
getRegex
-
getCreated
-
getModified
-
getUntilDate
-
getEffectiveFrom
-
getTagIds
-
getCacheControlHeader
-
getDefaultCacheControlHeader
- Returns:
- default Cache-Control header for this redirect inherited from the parent
-
getTags
used in the redirect-row component to print tags in HTL -
toString
-
equals
-
hashCode
public int hashCode() -
evaluate
-
getState
- Returns:
- whether the rule has expired, i.e. the 'untilDate' property is before the current time ----[effectiveFrom]---[now]---[untilDate]--->
-
isPublished
public boolean isPublished()- Returns:
- whether the redirect is published
-
getPreserveQueryString
-