01-14-2013 03:57 PM
public class CookieModuleEvaluator implements ExtensionModuleEvaluator {
private static final String COOKIE_PROP = "Cookie";
private static final String COOKIE_VAL = "Value";
public boolean applyModule(RequestContext context, Map<String, String> evaluationProperties) {
String cookieWereLookingFor = evaluationProperties.get(COOKIE_PROP);
String cookieValueWereLookingFor = evaluationProperties.get(COOKIE_VAL);
// HOW do I get the COOKIES from the context ????
// String cookieValue = context.getCookie(cookieWereLookingFor);
String cookieValue = context.getHeader(cookieWereLookingFor);
return cookieValueWereLookingFor.equals(cookieValue);
}
public String [] getRequiredProperties() {
return new String [] {COOKIE_PROP, COOKIE_VAL};
}
}
01-14-2013 08:14 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.