Class EntityRedirectsManager
- java.lang.Object
-
- org.sakaiproject.entitybroker.rest.EntityRedirectsManager
-
public class EntityRedirectsManager extends Object
Handles everything related the URL redirects handling and processing- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntityRedirectsManager()Empty constructorEntityRedirectsManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager, org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStore entityProviderMethodStore, org.sakaiproject.entitybroker.entityprovider.extension.RequestStorageWrite requestStorage)Base constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcheckForTemplateMatch(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider, String incomingURL, String queryString)Do a check to see if the current incoming URL is a match to any of the redirect templates for the given entity providervoidsetEntityBrokerManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager)voidsetEntityProviderMethodStore(org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStore entityProviderMethodStore)voidsetRequestStorage(org.sakaiproject.entitybroker.entityprovider.extension.RequestStorageWrite requestStorage)
-
-
-
Constructor Detail
-
EntityRedirectsManager
protected EntityRedirectsManager()
Empty constructor
-
EntityRedirectsManager
public EntityRedirectsManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager, org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStore entityProviderMethodStore, org.sakaiproject.entitybroker.entityprovider.extension.RequestStorageWrite requestStorage)Base constructor- Parameters:
entityProviderMethodStore- the provider method store servicerequestStorage- the request storage service
-
-
Method Detail
-
setEntityBrokerManager
public void setEntityBrokerManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager)
-
setEntityProviderMethodStore
public void setEntityProviderMethodStore(org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStore entityProviderMethodStore)
-
setRequestStorage
public void setRequestStorage(org.sakaiproject.entitybroker.entityprovider.extension.RequestStorageWrite requestStorage)
-
checkForTemplateMatch
public String checkForTemplateMatch(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider, String incomingURL, String queryString)
Do a check to see if the current incoming URL is a match to any of the redirect templates for the given entity provider- Parameters:
entityProvider- an entity providerqueryString- the query string (e.g. auto=true) for the incoming URLincomingUrl- the incoming URL to try to match- Returns:
- the URL to redirect to (will start with /direct if it should be forwarded) OR null if no matches were found
-
-