@Entity public class URLHandlerImpl extends Object implements URLHandler, org.broadleafcommerce.common.web.Locatable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected String |
incomingURL |
protected String |
newURL |
protected String |
urlRedirectType |
| Constructor and Description |
|---|
URLHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends URLHandler> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
Long |
getId() |
String |
getIncomingURL() |
String |
getLocation() |
String |
getMainEntityName() |
String |
getNewURL() |
URLRedirectType |
getUrlRedirectType() |
protected boolean |
hasRegExCharacters(String location)
In a preview environment,
getLocation() attempts to navigate to the
provided URL. |
void |
setId(Long id) |
void |
setIncomingURL(String incomingURL) |
void |
setNewURL(String newURL) |
void |
setUrlRedirectType(URLRedirectType redirectType) |
protected Long id
protected String incomingURL
protected String newURL
protected String urlRedirectType
public Long getId()
getId in interface URLHandlerpublic void setId(Long id)
setId in interface URLHandlerpublic String getIncomingURL()
getIncomingURL in interface URLHandlerpublic void setIncomingURL(String incomingURL)
setIncomingURL in interface URLHandlerpublic String getNewURL()
getNewURL in interface URLHandlerpublic void setNewURL(String newURL)
setNewURL in interface URLHandlerpublic URLRedirectType getUrlRedirectType()
getUrlRedirectType in interface URLHandlerpublic void setUrlRedirectType(URLRedirectType redirectType)
setUrlRedirectType in interface URLHandlerpublic String getMainEntityName()
getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntitypublic String getLocation()
getLocation in interface org.broadleafcommerce.common.web.Locatableprotected boolean hasRegExCharacters(String location)
getLocation() attempts to navigate to the
provided URL. If the URL contains a Regular Expression, then we can't
navigate to it.location - public <G extends URLHandler> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<URLHandler>CloneNotSupportedExceptionCopyright © 2017. All rights reserved.