@Override
   public boolean checkParameter(String key, String value) {
      if (null == value) {
         return true;
      }
      value = value.toLowerCase();
      if (value.contains("'")) {
         return false;
      }
      if (value.contains("--")) {
         return false;
      }

      if (value.contains("drop ")) {
         return false;
      }
      if (value.contains("insert ")) {
         return false;
      }
      if (value.contains("select ")) {
         return false;
      }
      if (value.contains("delete ")) {
         return false;
      }
      if (value.contains("<")) {
         return false;
      }
      if (value.contains(">")) {
         return false;
      }
      return true;

   }
@ Override public boolean checkParameter ( String key , String value ) { if ( null == value ) { return true ; } value = value . toLowerCase ( ) ; if ( value . contains ( "'" ) ) { return false ; } if ( value . contains ( "--" ) ) { return false ; } if ( value . contains ( "drop " ) ) { return false ; } if ( value . contains ( "insert " ) ) { return false ; } if ( value . contains ( "select " ) ) { return false ; } if ( value . contains ( "delete " ) ) { return false ; } if ( value . contains ( "<" ) ) { return false ; } if ( value . contains ( ">" ) ) { return false ; } return true ; }
returns true if the parameter seems to be ok.