|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.foundations.NamedObjectBase
com.pcube.apps.engage.policy.SubNotification
com.pcube.apps.engage.policy.SubscriberRedirection
public class SubscriberRedirection
| Field Summary | |
|---|---|
static int |
ACTIVATION_FREQUENCY_ALWAYS
|
static int |
ACTIVATION_FREQUENCY_ONCE
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_EVENTS
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_KBYTES
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_SECONDS
|
static int |
ACTIVATION_FREQUENCY_UNTIL_SUBSCRIBER_BROWSES_TO
|
static int |
DEFAULT_REDIRECT_SET_VALUE
|
static int |
MAX_NUMBER_ALLOWED_URL
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_ANY
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_BROWSE_TO_NEW_SITE
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_SUBSCRIBER_CLICKS
|
static int |
NOTIFICATION_TYPE_CONDITIONAL_REDIRECT
|
static int |
NOTIFICATION_TYPE_NOTIFICATION
|
| Fields inherited from class com.pcube.apps.engage.policy.SubNotification |
|---|
DEST_URL_MAX_LENGTH, DEST_URL_VALUE, DISMISSAL_METHOD_DEAC, DISMISSAL_METHOD_DEST, DISMISSAL_METHOD_DISS, DISMISSAL_URL_VALUE, DISS_URL_MAX_LENGTH |
| Constructor Summary | |
|---|---|
SubscriberRedirection(Policy newPolicy)
|
|
| Method Summary | |
|---|---|
static String |
chopHttpPrefixIfExist(String httpUrl)
|
com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT |
createWhiteListLUT(boolean addNotificationRedirectURL)
return the whole LUT, adding the dismissal and redirect urls is optional |
static String |
extractHost(String httpUrl)
extract host from httpUrl |
static String |
extractPath(String httpUrl)
extract path from httpUrl |
static com.pcube.apps.engage.policy.urlpattern.UrlPattern |
findNotificationHttpRedirectURL(Policy myPolicy,
int index)
find notification HTTP redirect URL based on redirect index |
void |
fromStream(BufferedReader in,
Formatter f)
Method fromStream |
int |
getActivationFrequency()
|
int |
getActivationTrigger()
get flow type |
URL |
getDestinationURL()
Deprecated. use { getRedirectSetIndex()
instead} |
int |
getDismissalMethod()
Deprecated. use { getActivationFrequency()
instead} |
com.pcube.apps.engage.policy.urlpattern.UrlPattern |
getDismissalUrl()
|
com.pcube.apps.engage.policy.urlpattern.UrlPattern |
getDismissalURL()
Deprecated. use { getDismissalUrl()instead} |
int |
getIndex()
notification's id |
int |
getPeriodicallyValue()
|
int |
getRedirectProfileType()
get notification type - conditional redirect or notification |
int |
getRedirectSetIndex()
get redirect set index |
ArrayList |
getUrlWhiteList()
Deprecated. use getWhiteUrlList()instead} |
ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> |
getWhiteUrlList()
get the white URL list |
static boolean |
isPeriodicallyActivationFrequency(int newActivationFrequency)
|
static boolean |
isPeriodicallyActivationFrequency(Policy myPolicy,
int index)
|
void |
setActivationFrequency(HashMap<Package,HashMap<Integer,Integer>> package2countAssignedPeriodicConRedirect,
int howToActiveMethod)
this method should be called while updating the list in background and only after update the policy list accordingly (GUI dialog for instance) |
void |
setActivationFrequency(int howToActiveMethod)
each time while set activation frequency, validate periodic condition redirect counter |
void |
setActivationTrigger(int flowType)
set flow type NOTIFICATION_FLOW_TYPE_CLICK_STREAM = 2 NOTIFICATION_FLOW_TYPE_CROSS_SITE = 1 NOTIFICATION_FLOW_TYPE_ALWAYS = 0 |
void |
setDestinationURL(String newDestination)
Deprecated. use { SubscriberRedirection#setRedirectSetIndex()
instead} |
void |
setDestinationURL(URL newDestination)
Deprecated. use { SubscriberRedirection#setRedirectSetIndex()
instead} |
void |
setDismissalMethod(int dismissalMethod)
Deprecated. use { SubscriberRedirection#setHowToActiveMethod()
instead} |
void |
setDismissalUrl(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDismissalUrl)
|
void |
setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
Deprecated. use { SubscriberRedirection#setDismissalUrl()instead} |
void |
setIndex(int index)
notification's id |
void |
setPeriodicallyValue(int newPeriodicallyValue)
|
void |
setRedirectProfileType(int newNotificationType)
set notification type - conditional redirect or notification NOTIFICATION_TYPE_CONDITIONAL_REDIRECT = 0; NOTIFICATION_TYPE_NOTIFICATION = 1; |
void |
setRedirectSetIndex(int newRedirectSetIndex)
set redirect set index |
void |
setUrlWhiteList(ArrayList urlPatterns)
Deprecated. use SubscriberRedirection#setWhiteUrlList()instead. |
void |
setWhiteUrlList(ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> newWhiteUrlList)
Set the white URLs list |
void |
toStream(PrintStream out,
Formatter f)
Method toStream |
String |
toString()
Automatically generated method: toString |
| Methods inherited from class com.pcube.apps.engage.policy.SubNotification |
|---|
convertOldNotifToNewNotif, createDefault, createNetworkAttackNotification, createWhiteListLUT, getId, isTailAppended, setId, setTailAppended |
| Methods inherited from class com.pcube.apps.engage.foundations.NamedObjectBase |
|---|
addPropertyChangedListener, addVetoableChangeListener, getName, removePropertyChangedListener, removeVetoableChangeListener, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NOTIFICATION_TYPE_CONDITIONAL_REDIRECT
public static final int NOTIFICATION_TYPE_NOTIFICATION
public static final int NOTIFICATION_ACTIVATION_TRIGGER_SUBSCRIBER_CLICKS
public static final int NOTIFICATION_ACTIVATION_TRIGGER_BROWSE_TO_NEW_SITE
public static final int NOTIFICATION_ACTIVATION_TRIGGER_ANY
public static final int ACTIVATION_FREQUENCY_UNTIL_SUBSCRIBER_BROWSES_TO
public static final int ACTIVATION_FREQUENCY_ALWAYS
public static final int ACTIVATION_FREQUENCY_ONCE
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_SECONDS
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_EVENTS
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_KBYTES
public static final int DEFAULT_REDIRECT_SET_VALUE
public static final int MAX_NUMBER_ALLOWED_URL
| Constructor Detail |
|---|
public SubscriberRedirection(Policy newPolicy)
| Method Detail |
|---|
public static String chopHttpPrefixIfExist(String httpUrl)
public static String extractHost(String httpUrl)
public static String extractPath(String httpUrl)
public static com.pcube.apps.engage.policy.urlpattern.UrlPattern findNotificationHttpRedirectURL(Policy myPolicy,
int index)
public com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT createWhiteListLUT(boolean addNotificationRedirectURL)
addNotificationRedirectURL - true to add dismissal and destination URLs to LUT
public void fromStream(BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattablefromStream in class SubNotificationImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public int getActivationFrequency()
public int getActivationTrigger()
public URL getDestinationURL()
getRedirectSetIndex()
instead}
getDestinationURL in class SubNotificationpublic int getDismissalMethod()
getActivationFrequency()
instead}
getDismissalMethod in class SubNotificationpublic com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalUrl()
public com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalURL()
getDismissalUrl()instead}
getDismissalURL in class SubNotificationpublic int getIndex()
public int getPeriodicallyValue()
public int getRedirectProfileType()
public int getRedirectSetIndex()
public ArrayList getUrlWhiteList()
getWhiteUrlList()instead}
getUrlWhiteList in class SubNotificationpublic ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> getWhiteUrlList()
public void setActivationFrequency(int howToActiveMethod)
howToActiveMethod -
public void setActivationFrequency(HashMap<Package,HashMap<Integer,Integer>> package2countAssignedPeriodicConRedirect,
int howToActiveMethod)
package2countAssignedPeriodicConRedirect - howToActiveMethod - public void setActivationTrigger(int flowType)
flowType -
public void setDestinationURL(String newDestination)
throws MalformedURLException
SubscriberRedirection#setRedirectSetIndex()
instead}
setDestinationURL in class SubNotificationMalformedURLException - *
public void setDestinationURL(URL newDestination)
throws MalformedURLException
SubscriberRedirection#setRedirectSetIndex()
instead}
setDestinationURL in class SubNotificationMalformedURLException - *public void setDismissalMethod(int dismissalMethod)
SubscriberRedirection#setHowToActiveMethod()
instead}
setDismissalMethod in class SubNotificationdismissalMethod - The dismissalMethod to set.public void setDismissalUrl(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDismissalUrl)
public void setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
SubscriberRedirection#setDismissalUrl()instead}
setDismissalURL in class SubNotificationnewDissUrl - The dismissalUrl to set.
public void setIndex(int index)
throws PropertyVetoException
PropertyVetoExceptionpublic void setPeriodicallyValue(int newPeriodicallyValue)
public void setRedirectProfileType(int newNotificationType)
newNotificationType - public void setRedirectSetIndex(int newRedirectSetIndex)
newRedirectSetIndex - public void setUrlWhiteList(ArrayList urlPatterns)
SubscriberRedirection#setWhiteUrlList()instead.
setUrlWhiteList in class SubNotificationurlPatterns - list of UrlPatternpublic void setWhiteUrlList(ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> newWhiteUrlList)
newWhiteUrlList -
public void toStream(PrintStream out,
Formatter f)
Formattable
toStream in interface FormattabletoStream in class SubNotificationFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public static boolean isPeriodicallyActivationFrequency(int newActivationFrequency)
public static boolean isPeriodicallyActivationFrequency(Policy myPolicy,
int index)
public String toString()
toString in class SubNotificationObject.toString()
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||