public boolean hasPragmaDirective(String directive){
  String existingDirectives=getRequestHeader(PRAGMA_HEADER);
  if (existingDirectives != null && existingDirectives.contains(directive)) {
    return true;
  }
  return false;
}

public boolean hasPragmaDirective ( String directive ) { String existingDirectives = getRequestHeader ( PRAGMA_HEADER ) ; if ( existingDirectives != null && existingDirectives . contains ( directive ) ) { return true ; } return false ; }
checks if a directive is present . lower case strings must be used .
